[hackers] [st] Consistent Alt+BackSpace behavior || Alive 4ever

From: <git_AT_suckless.org>
Date: Tue, 12 Jul 2016 15:26:30 +0200 (CEST)

commit 235b438e689e1fab677ee7e6ee53491867c16b9d
Author: Alive 4ever <alive4ever_AT_live.com>
AuthorDate: Sun Jul 10 06:38:04 2016 +0000
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Tue Jul 12 15:25:08 2016 +0200

    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_AT_r-36.net>

diff --git a/config.def.h b/config.def.h
index 9e61010..0070635 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -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},
Received on Tue Jul 12 2016 - 15:26:30 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 12 2016 - 15:36:21 CEST