ui/cocoa.m: Fix console selection keys

Fix console selection keys so that the right console is selected.

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
Message-id: 20171005190449.15591-1-programmingkidx@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
John Arbuckle 2017-10-05 15:04:49 -04:00 committed by Peter Maydell
parent 8a8c493942
commit fa73e14625
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ QemuCocoaView *cocoaView;
// enable graphic console
case Q_KEY_CODE_1 ... Q_KEY_CODE_9: // '1' to '9' keys
console_select(keycode - 11);
console_select(keycode - Q_KEY_CODE_1);
break;
}