Handle shift as a modifier. - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 06107f8d25b2817904804040f729e2f059eca966
(DIR) parent 37df20c57224ba5a3a4b9c04491368b7b5047ac6
(HTM) Author: Rob King <jking@deadpixi.com>
Date: Fri, 9 Sep 2016 17:11:39 -0500
Handle shift as a modifier.
Diffstat:
libXg/gwin.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/libXg/gwin.c b/libXg/gwin.c
@@ -250,7 +250,11 @@ Keyaction(Widget w, XEvent *e, String *p, Cardinal *np)
/* Check to see if it's a specially-handled key first. */
for (Keymapping *m = keymappings; m; m = m->next){
- if (k == m->s){
+ KeySym u = NoSymbol;
+ KeySym l = NoSymbol;
+ XConvertCase(k, &l, &u);
+
+ if (l == m->s){
if (m->m == 0 || (m->m & ~e->xkey.state) == 0){
f = ((GwinWidget)w)->gwin.gotchar;
if (f)