From c6f84a448a84c07a2050ab594e1c64ea72a1071c Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 7 May 2014 09:55:40 +0200 Subject: Configurable keystrokes: Don't ignore first XML element in keystrokes.cfg anymore. (Fixes: #488). --- debian/patches/320_nxagent_configurable-keystrokes.full.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'debian/patches') diff --git a/debian/patches/320_nxagent_configurable-keystrokes.full.patch b/debian/patches/320_nxagent_configurable-keystrokes.full.patch index 1f6e32832..d9f1fd796 100644 --- a/debian/patches/320_nxagent_configurable-keystrokes.full.patch +++ b/debian/patches/320_nxagent_configurable-keystrokes.full.patch @@ -83,7 +83,7 @@ Description: Make nxagent-specific keyboard bindings configurable #ifdef NX_DEBUG_INPUT int nxagentDebugInputDevices = 0; -@@ -47,297 +54,527 @@ +@@ -47,297 +54,528 @@ #undef DEBUG #undef DUMP @@ -649,10 +649,11 @@ Description: Make nxagent-specific keyboard bindings configurable - { - *result = doViewportMoveUp; - } -+ while ((cur++)->stroke != KEYSTROKE_END_MARKER) { ++ while (cur->stroke != KEYSTROKE_END_MARKER) { + if (cur->keysym == keysym && modifier_matches(cur->modifierMask, cur->modifierAltMeta, X->state)) { + return cur->stroke; + } ++ cur++; + } - break; -- cgit v1.2.3