From 526e1f4b3c7bf8f411db7b3035ff38f9d3ba9fa7 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 30 Jan 2017 12:47:40 -0500 Subject: [PATCH] Fixed bug in handling keyboard shortcuts. Lock modifiers are now masked away before looking for shortcut entries --- TODO.md | 2 -- inc/x11.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 */ -- 2.54.0