Merge pull request #3 from hydrargyrum/master
Re-enable Ctrl-X in the "choose key" dialog to shun a joystick button
This commit is contained in:
@ -46,8 +46,8 @@ bool GetKey::x11Event( XEvent* e )
|
|||||||
wasMouse = false;
|
wasMouse = false;
|
||||||
if (XKeycodeToKeysym(QX11Info::display(),e->xkey.keycode,0) == XK_x) {
|
if (XKeycodeToKeysym(QX11Info::display(),e->xkey.keycode,0) == XK_x) {
|
||||||
if (e->xkey.state & ControlMask) {
|
if (e->xkey.state & ControlMask) {
|
||||||
value = -1;
|
value = 0;
|
||||||
reject();
|
accept();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
value = e->xkey.keycode;
|
value = e->xkey.keycode;
|
||||||
|
Reference in New Issue
Block a user