[dev] [st] delete key didn't work correctly

From: Martti Kühne <mysatyre_AT_gmail.com>
Date: Sun, 9 Dec 2012 20:46:01 +0100

hi guys

Was compiling git HEADs today and ported my private patches to the newest
codebase. Wrong did go a few things, mostly on my own account, but my setup
with dmenu/dwm/st/sandy besides a gui editor is up and running.
Now, st's delete key didn't work, and I looked into the code long enough to
say with confidence, there's nothing wrong with kmap().

Beneath is my best guess on what went wrong with the delete key.
I'm not sure on what basis these values are assigned to keys, and my patch
won't cover if the other Delete entries, or even Insert entries are somehow
angularly polarized.

Now great, the next problem is already here, in which HOME isn't working pro-
perly in st + sandy, works in xterm and sandy, as well as in st + nano.

good night!
mar77i

[1] http://mar77i.linuxianer.ch:8080/suckless

-------

diff --git a/config.def.h b/config.def.h
index 684adf7..b10c730 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -138,8 +138,8 @@ static Key key[] = {
         { XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0, 0},
         { XK_KP_Delete, ShiftMask, "\033[2K", +1, 0, 0},
         { XK_KP_Delete, ShiftMask, "\033[3;2~", -1, 0, 0},
- { XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0},
- { XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
+ { XK_KP_Delete, XK_ANY_MOD, "\033[3~", -1, 0, 0},
+ { XK_KP_Delete, XK_ANY_MOD, "\033[P", +1, 0, 0},
         { XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0, 0},
         { XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0, 0},
         { XK_KP_Enter, XK_ANY_MOD, "\033OM", +2, 0, 0},
_AT_@ -194,8 +194,8 @@ static Key key[] = {
         { XK_Delete, ControlMask, "\033[3;5~", +1, 0, 0},
         { XK_Delete, ShiftMask, "\033[2K", +1, 0, 0},
         { XK_Delete, ShiftMask, "\033[3;2~", -1, 0, 0},
- { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0},
- { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
+ { XK_Delete, XK_ANY_MOD, "\033[3~", -1, 0, 0},
+ { XK_Delete, XK_ANY_MOD, "\033[P", +1, 0, 0},
         { XK_Home, ShiftMask, "\033[1;2H", 0, 0, 0},
         { XK_Home, XK_ANY_MOD, "\033[H", 0, -1, 0},
         { XK_Home, XK_ANY_MOD, "\033[1~", 0, +1, 0},

Received on Sun Dec 09 2012 - 20:46:01 CET

This archive was generated by hypermail 2.3.0 : Sun Dec 09 2012 - 20:48:05 CET