Commit bdbd7676fd84066e710fab187c343174bb9592cd

Authored by bellard
1 parent 38cfa06c

uppercase fix (Anthony Liguori)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1889 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 8 additions and 1 deletions
... ... @@ -591,7 +591,7 @@ static void pointer_event(VncState *vs, int button_mask, int x, int y)
591 591 }
592 592 }
593 593  
594   -static void key_event(VncState *vs, int down, uint32_t sym)
  594 +static void do_key_event(VncState *vs, int down, uint32_t sym)
595 595 {
596 596 int keycode;
597 597  
... ... @@ -605,6 +605,13 @@ static void key_event(VncState *vs, int down, uint32_t sym)
605 605 kbd_put_keycode(keycode | 0x80);
606 606 }
607 607  
  608 +static void key_event(VncState *vs, int down, uint32_t sym)
  609 +{
  610 + if (sym >= 'A' && sym <= 'Z')
  611 + sym = sym - 'A' + 'a';
  612 + do_key_event(vs, down, sym);
  613 +}
  614 +
608 615 static void framebuffer_update_request(VncState *vs, int incremental,
609 616 int x_position, int y_position,
610 617 int w, int h)
... ...