Configurable shortcut keys
Currently VTE has several hardwired shortcut keys.
- Scrolling:
Shift
+PgUp
/PgDn
/Home
/End
andCtrl
+Shift
+Up
/Down
/Left
/Right
. - Copy-paste: various modifiers +
Insert
- anything else?
We should make them configurable.
A pair of API could look something like vte_terminal_set_hotkey(enum VteOperation operation, GdkModifierType mods, guint keyval)
and a getter counterpart. The said enum would have values like ScrollUpByLine
, InsertToClipboard
etc. There needs to be a way to specify no hotkey for the given operation, could we use 0 for mods
and keyval
for this?
The defaults would be our currently hardcoded values because we want these to work in all VTE-based apps by default.
As per #99 and #2748 (comment 2074865), we should probably change the checking of modifiers to look for an exact match rather than at least the specified modifiers.
Once it's done, update gnome-terminal's Preferences -> Shortcuts dialog, plus its help pages.