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.
This commit is contained in:
András Mohari
2014-01-31 14:17:52 +01:00
parent d5b2d377a4
commit 54d7b7f20f
4 changed files with 25 additions and 5 deletions

View File

@ -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 */