Has switching virtual consoles actually been broken with SDL on non-X11,
non-win32 platforms (i.e. Mac OS X) for 7 months without anyone noticing
?? Anyway, here's a patch that fixes it. Just a small change that was
forgotten in the keymaps support (sdl.c rev. 1.20). Applies to current
CVS as well as 0.7.0.
-Christian
Index: sdl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/sdl.c,v
retrieving revision 1.21
diff -u -r1.21 sdl.c
--- sdl.c 17 Jan 2005 22:32:23 -0000 1.21
+++ sdl.c 22 Jul 2005 21:14:11 -0000
@@ -334,7 +334,11 @@
gui_key_modifier_pressed = mod_state;
if (gui_key_modifier_pressed) {
int keycode;
- keycode = sdl_keyevent_to_keycode(&ev->key);
+ if (kbd_layout) {
+ keycode = sdl_keyevent_to_keycode_generic(&ev->key);
+ } else {
+ keycode = sdl_keyevent_to_keycode(&ev->key);
+ }
switch(keycode) {
case 0x21: /* 'f' key on US keyboard */
toggle_full_screen(ds);
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel