From: Michael D. Lowis Date: Mon, 30 Jan 2017 17:47:40 +0000 (-0500) Subject: Fixed bug in handling keyboard shortcuts. Lock modifiers are now masked away before... X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=526e1f4b3c7bf8f411db7b3035ff38f9d3ba9fa7;p=projs%2Ftide.git Fixed bug in handling keyboard shortcuts. Lock modifiers are now masked away before looking for shortcut entries --- diff --git a/TODO.md b/TODO.md index 6c91974..bed34ec 100644 --- a/TODO.md +++ b/TODO.md @@ -2,8 +2,6 @@ Up Next: -* Num Lock causes modifier checks to fail in xedit.c -* Implement X Selection protocol for handling clipboard and primary selections * Right click in tags region should search edit region * Add keyboard shortcut to highlight the thing under the cursor * Tag line count should account for wrapped lines diff --git a/inc/x11.h b/inc/x11.h index 97cb150..e875b13 100644 --- a/inc/x11.h +++ b/inc/x11.h @@ -118,7 +118,7 @@ enum { ModNumLock = (1 << 4), ModScrollLock = (1 << 5), ModWindows = (1 << 6), - ModAny = ModWindows-1 + ModAny = (ModShift|ModCtrl|ModAlt) }; /* Selection identifiers */