(x11) Fix binding of numpad keys
This commit is contained in:
parent
6c3bf5c27e
commit
ae52f0f5c9
|
@ -80,13 +80,12 @@ static size_t conv_utf8_utf32(uint32_t *out,
|
||||||
void x11_handle_key_event(XEvent *event, XIC ic, bool filter)
|
void x11_handle_key_event(XEvent *event, XIC ic, bool filter)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unsigned state;
|
unsigned state, key;
|
||||||
uint16_t mod = 0;
|
uint16_t mod = 0;
|
||||||
char keybuf[32] = {0};
|
char keybuf[32] = {0};
|
||||||
uint32_t chars[32] = {0};
|
uint32_t chars[32] = {0};
|
||||||
|
|
||||||
bool down = event->type == KeyPress;
|
bool down = event->type == KeyPress;
|
||||||
unsigned key = input_keymaps_translate_keysym_to_rk(XLookupKeysym(&event->xkey, 0));
|
|
||||||
int num = 0;
|
int num = 0;
|
||||||
KeySym keysym = 0;
|
KeySym keysym = 0;
|
||||||
|
|
||||||
|
@ -111,6 +110,7 @@ void x11_handle_key_event(XEvent *event, XIC ic, bool filter)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
key = input_keymaps_translate_keysym_to_rk(keysym);
|
||||||
state = event->xkey.state;
|
state = event->xkey.state;
|
||||||
|
|
||||||
if (state & ShiftMask)
|
if (state & ShiftMask)
|
||||||
|
|
Loading…
Reference in New Issue