From 54d7b7f20fc80460fb6160badb6d90e6505a4194 Mon Sep 17 00:00:00 2001 From: AndrĂ¡s Mohari Date: Fri, 31 Jan 2014 14:17:52 +0100 Subject: 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. --- config.def.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.def.h') 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 */ -- cgit v1.2.3-54-g00ecf