ui/cocoa.m: Send ctrl-alt key combos to guest if QEMU isn't using them
Send those ctrl-alt key combos that QEMU doesn't treat specially to the guest rather than ignoring them. All the case where we do special handling of ctrl-alt-X exit the event handling using a "return" statement, so we can simply allow the rest to fall through into the normal key handling by deleting the now-spurious "else". We take the opportunity to clean up some oddly-formatted and now rather uninformative comments by removing them. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
5929e36cac
commit
ef2088f9af
@ -704,12 +704,10 @@ QemuCocoaView *cocoaView;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// handle keys for graphic console
|
if (qemu_console_is_graphic(NULL)) {
|
||||||
} else if (qemu_console_is_graphic(NULL)) {
|
|
||||||
qemu_input_event_send_key_qcode(dcl->con, keycode, true);
|
qemu_input_event_send_key_qcode(dcl->con, keycode, true);
|
||||||
|
|
||||||
// handlekeys for Monitor
|
|
||||||
} else {
|
} else {
|
||||||
[self handleMonitorInput: event];
|
[self handleMonitorInput: event];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user