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/changelog | 2 ++ debian/patches/320_nxagent_configurable-keystrokes.full.patch | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4034c898f..f0ba3ddb5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ nx-libs (2:3.5.0.24-0x2go1) UNRELEASED; urgency=low + Fix: nx-libs source: not-binnmuable-all-depends-any x2goagent -> nxagent. * Update 320_nxagent_configurable-keystrokes.full.patch: The keystrokes config file's default name now is keystrokes.cfg (plural). + * Configurable keystrokes: Don't ignore first XML element in keystrokes.cfg + anymore. (Fixes: #488). -- Mike Gabriel Tue, 06 May 2014 18:34:36 +0200 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