Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix handling of multiple modifiers. - sam - An updated version of the sam text …
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit b4fa0da23ad1e33ffb2955133b88e2ee7b3bb521
parent 4466f50c07c8801889f94775b3e2875f45f9c784
Author: Rob King <[email protected]>
Date: Fri, 9 Sep 2016 17:02:21 -0500
Fix handling of multiple modifiers.
Diffstat:
libXg/gwin.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libXg/gwin.c b/libXg/gwin.c
@@ -246,13 +246,12 @@ Keyaction(Widget w, XEvent *e, String *p, Cardinal *np)
*/
if(e->xany.type != KeyPress)
return;
-
XtTranslateKeycode(e->xany.display, (KeyCode)e->xkey.keycode, e->xkey.stat…
/* Check to see if it's a specially-handled key first. */
for (Keymapping *m = keymappings; m; m = m->next){
if (k == m->s){
- if ((e->xkey.state & m->m) || m->m == 0){
+ if (m->m == 0 || (m->m & ~e->xkey.state) == 0){
f = ((GwinWidget)w)->gwin.gotchar;
if (f)
(*f)(m->c, m->k, Tcurrent, 0, 0);
@@ -265,7 +264,7 @@ Keyaction(Widget w, XEvent *e, String *p, Cardinal *np)
* The following song and dance is so we can have our chosen
* modifier key behave like a compose key, i.e, press and release
* and then type the compose sequence, like Plan 9. We have
- * to find out which key is the compose key first 'though.
+ * to find out which key is the compose key first though.
*/
if (IsModifierKey(k) && ((GwinWidget)w)->gwin.compose
&& composing == -2 && modmap) {
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.