diff options
author | Alive 4ever | 2016-07-10 06:38:04 +0000 |
---|---|---|
committer | Christoph Lohmann | 2016-07-12 15:25:08 +0200 |
commit | b33f851066aafdf0d8039f51e2293f32aff5ce77 (patch) | |
tree | b36c4c89f530bf12752ad91172a2cea7c169a525 /config.def.h | |
parent | 256f842531e51cc0cee4702dc5b5b3aaffc988b3 (diff) | |
download | aur-b33f851066aafdf0d8039f51e2293f32aff5ce77.tar.gz |
Consistent Alt+BackSpace behavior
The default config specifies BackSpace as "\177". The default behavior
should persist across modifier keys, commonly Mod1 (Alt or Meta) which
is widely used to delete a word on readline and text editors, notably
Emacs.
This will make Alt+BackSpace behaves as expected, i.e. sends "\033\177"
instead of "\033\010" as previous default behavior.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 9e610109f094..0070635af8f5 100644 --- a/config.def.h +++ b/config.def.h @@ -303,6 +303,7 @@ static Key key[] = { { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0}, { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0}, { XK_BackSpace, XK_NO_MOD, "\177", 0, 0, 0}, + { XK_BackSpace, Mod1Mask, "\033\177", 0, 0, 0}, { XK_Home, ShiftMask, "\033[2J", 0, -1, 0}, { XK_Home, ShiftMask, "\033[1;2H", 0, +1, 0}, { XK_Home, XK_ANY_MOD, "\033[H", 0, -1, 0}, |