# HG changeset patch # User Anthony Liguori # Node ID a2d60c56904d3e2c08d628461c04b149c74b62cb # Parent c0fedc4f4e9c870fa2ececc1144596c73e9e475e Fix uppercase characters diff -r c0fedc4f4e9c -r a2d60c56904d vnc.c --- a/vnc.c Mon May 01 18:58:07 2006 +0000 +++ b/vnc.c Mon May 01 09:51:32 2006 -0500 @@ -591,7 +591,7 @@ static void pointer_event(VncState *vs, } } -static void key_event(VncState *vs, int down, uint32_t sym) +static void do_key_event(VncState *vs, int down, uint32_t sym) { int keycode; @@ -603,6 +603,13 @@ static void key_event(VncState *vs, int kbd_put_keycode(keycode & 0x7f); else kbd_put_keycode(keycode | 0x80); +} + +static void key_event(VncState *vs, int down, uint32_t sym) +{ + if (sym >= 'A' && sym <= 'Z') + sym = sym - 'A' + 'a'; + do_key_event(vs, down, sym); } static void framebuffer_update_request(VncState *vs, int incremental,