summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rw-r--r--client_examples/SDLvncviewer.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/TODO b/TODO
index cef1823..8b1dd69 100644
--- a/TODO
+++ b/TODO
@@ -4,7 +4,6 @@ immediate:
Implement ZYWRLE decoding in libvncclient
make SDLvncviewer more versatile (test for missing keys, introduce scrollbars,
make scrollable with 2xCtrl and mouse drag)
- - Left Ctrl + A does not work
- 2nd and 3rd mouse button are switched
Clean up ZRLE (probably not thread-safe: zrleBeforeBuf, zrlePaletteHelper)
style fixes: use Linux' coding guidelines & ANSIfy tightvnc-filetransfer:
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;