Skip to content

Commit

Permalink
ui/cocoa.m: Fix console selection keys
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
programmingkidx authored and pm215 committed Nov 2, 2017
1 parent 8a8c493 commit fa73e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/cocoa.m
Expand Up @@ -631,7 +631,7 @@ - (void) handleEvent:(NSEvent *)event

// 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;
}

Expand Down

0 comments on commit fa73e14

Please sign in to comment.