uppercase fix (Anthony Liguori)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1889 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2006-05-01 21:44:22 +00:00
parent 38cfa06cbd
commit bdbd7676fd
1 changed files with 8 additions and 1 deletions

9
vnc.c
View File

@ -591,7 +591,7 @@ static void pointer_event(VncState *vs, int button_mask, int x, int y)
}
}
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;
@ -605,6 +605,13 @@ static void key_event(VncState *vs, int down, uint32_t sym)
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,
int x_position, int y_position,
int w, int h)