Skip to content
Snippets Groups Projects
Commit 24b4a34b authored by deuce's avatar deuce
Browse files

Fix error which caused keypad with NumLock on to send both the arrow and

number to the remote.
Fixes bug https://sourceforge.net/p/syncterm/tickets/15/
parent 6492c7e0
No related branches found
No related tags found
No related merge requests found
......@@ -833,6 +833,9 @@ void sdl_video_event_thread(void *data)
}
}
if (block_text || ev.key.keysym.sym < 0 || ev.key.keysym.sym > 127) {
// NUMLOCK makes
if ((ev.key.keysym.mod & KMOD_NUM) && ((ev.key.keysym.sym >= SDLK_KP_1 && ev.key.keysym.sym <= SDLK_KP_0) || ev.key.keysym.sym == SDLK_KP_PERIOD))
break;
sdl_add_key(sdl_get_char_code(ev.key.keysym.sym, ev.key.keysym.mod));
}
else if (!isprint(ev.key.keysym.sym)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment