mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-12 18:29:04 +00:00
Changed: #942 Make all keys used for actions/macros identical on all platforms
This commit is contained in:
parent
a205ec408d
commit
0cdd2c6323
1 changed files with 4 additions and 4 deletions
|
@ -304,9 +304,9 @@ void CUnixEventEmitter::processMessage (XEvent &event, CEventServer &server)
|
||||||
int c;
|
int c;
|
||||||
c = XLookupString(&event.xkey, Text, 1024-1, &k, NULL);
|
c = XLookupString(&event.xkey, Text, 1024-1, &k, NULL);
|
||||||
|
|
||||||
TKey key = getKey(XKeycodeToKeysym(_dpy, ((XKeyEvent*)&event)->keycode, 0));
|
TKey key = getKey(XKeycodeToKeysym(_dpy, event.xkey.keycode, 0));
|
||||||
if(key == KeyNOKEY)
|
if(key == KeyNOKEY)
|
||||||
key = getKey(XKeycodeToKeysym(_dpy, ((XKeyEvent*)&event)->keycode, 1));
|
key = getKey(XKeycodeToKeysym(_dpy, event.xkey.keycode, 1));
|
||||||
|
|
||||||
server.postEvent (new CEventKeyDown (key, getKeyButton(event.xbutton.state), _PreviousKey != key, this));
|
server.postEvent (new CEventKeyDown (key, getKeyButton(event.xbutton.state), _PreviousKey != key, this));
|
||||||
_PreviousKey = key;
|
_PreviousKey = key;
|
||||||
|
@ -332,9 +332,9 @@ void CUnixEventEmitter::processMessage (XEvent &event, CEventServer &server)
|
||||||
int c;
|
int c;
|
||||||
c = XLookupString(&event.xkey, Text, 1024-1, &k, NULL);
|
c = XLookupString(&event.xkey, Text, 1024-1, &k, NULL);
|
||||||
|
|
||||||
TKey key = getKey(XKeycodeToKeysym(_dpy, ((XKeyEvent*)&event)->keycode, 0));
|
TKey key = getKey(XKeycodeToKeysym(_dpy, event.xkey.keycode, 0));
|
||||||
if(key == KeyNOKEY)
|
if(key == KeyNOKEY)
|
||||||
key = getKey(XKeycodeToKeysym(_dpy, ((XKeyEvent*)&event)->keycode, 1));
|
key = getKey(XKeycodeToKeysym(_dpy, event.xkey.keycode, 1));
|
||||||
|
|
||||||
server.postEvent (new CEventKeyUp (key, getKeyButton(event.xbutton.state), this));
|
server.postEvent (new CEventKeyUp (key, getKeyButton(event.xbutton.state), this));
|
||||||
_PreviousKey = KeyNOKEY;
|
_PreviousKey = KeyNOKEY;
|
||||||
|
|
Loading…
Reference in a new issue