summaryrefslogtreecommitdiffstats
path: root/client_examples
diff options
context:
space:
mode:
authordscho <dscho>2008-02-02 03:56:41 +0000
committerdscho <dscho>2008-02-02 03:56:41 +0000
commit2530c5fa4cc468207180329c79fc74a0fa4e016d (patch)
tree38e3ba1794c722d388c602afe4ba812a7fa28a1a /client_examples
parent20fe2c2e96cb648f94e0e8070cc6c32d4f282855 (diff)
downloadlibtdevnc-2530c5fa4cc468207180329c79fc74a0fa4e016d.tar.gz
libtdevnc-2530c5fa4cc468207180329c79fc74a0fa4e016d.zip
SDLvncviewer: fix Ctrl+<letter>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'client_examples')
-rw-r--r--client_examples/SDLvncviewer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c
index 64f0f56..4154887 100644
--- a/client_examples/SDLvncviewer.c
+++ b/client_examples/SDLvncviewer.c
@@ -130,6 +130,11 @@ static rfbKeySym SDL_key2rfbKeySym(SDL_KeyboardEvent* e) {
case SDLK_BREAK: k = XK_Break; break;
default: break;
}
+ if (k == 0 && e->keysym.sym >= SDLK_a && e->keysym.sym <= SDLK_z) {
+ k = XK_a + e->keysym.sym - SDLK_a;
+ if (e->keysym.mod & (KMOD_LSHIFT | KMOD_RSHIFT))
+ k &= ~0x20;
+ }
if (k == 0) {
if (e->keysym.unicode < 0x100)
k = e->keysym.unicode;