aboutsummaryrefslogtreecommitdiff
path: root/vnc.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-01 21:44:22 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-01 21:44:22 +0000
commitbdbd7676fd84066e710fab187c343174bb9592cd (patch)
tree9673b92ea1a5e7cd4ef7fff3091a1e01fc322af3 /vnc.c
parent38cfa06cbd27375226acf06083aa4301b085cbf2 (diff)
downloadqemu-bdbd7676fd84066e710fab187c343174bb9592cd.zip
qemu-bdbd7676fd84066e710fab187c343174bb9592cd.tar.gz
qemu-bdbd7676fd84066e710fab187c343174bb9592cd.tar.bz2
uppercase fix (Anthony Liguori)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1889 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vnc.c')
-rw-r--r--vnc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/vnc.c b/vnc.c
index aa4c38a..088f9cf 100644
--- a/vnc.c
+++ b/vnc.c
@@ -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)