diff options
author | András Mohari <andras.mohari@gmail.com> | 2014-01-31 14:17:52 +0100 |
---|---|---|
committer | András Mohari <andras.mohari@gmail.com> | 2014-01-31 14:17:52 +0100 |
commit | 54d7b7f20fc80460fb6160badb6d90e6505a4194 (patch) | |
tree | 0b0aab780889e9e26296f2231469f19bccfbf3aa /config.def.h | |
parent | d5b2d377a44db7408c90e5e15e35458bcc0f340c (diff) | |
download | nsxiv-54d7b7f20fc80460fb6160badb6d90e6505a4194.tar.zst |
Use a prefix key to execute the key handler
The default prefix key is C-x, and can be changed in config.def.h. The
first key pressed after the prefix key will be passed the external key
handler, unless the key is Escape, which is used to cancel the prefix.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 6c03bc1..1fa8de7 100644 --- a/config.def.h +++ b/config.def.h @@ -77,6 +77,12 @@ static const bool RENDER_WHITE_ALPHA = false; #endif #ifdef _MAPPINGS_CONFIG +/* the prefix key: when pressed, the next key combo is passed to the external + * key handler + */ +#define PREFIX_KEYMASK ControlMask +#define PREFIX_KEYSYM XK_x + /* keyboard mappings for image and thumbnail mode: */ static const keymap_t keys[] = { /* modifiers key function argument */ |