KeyEvent: Support modifiers / UI: Open file chooser on ctrl-O (#707)
* file chooser on ctrl-o * typo fix
This commit is contained in:
committed by
Justin Moore
parent
8cf8707d4e
commit
8e1c0201ad
@@ -88,6 +88,11 @@ bool EmulatorWindow::Initialize() {
|
||||
window_->on_key_down.AddListener([this](KeyEvent* e) {
|
||||
bool handled = true;
|
||||
switch (e->key_code()) {
|
||||
case 0x4F: { // o
|
||||
if (e->is_ctrl_pressed()) {
|
||||
FileOpen();
|
||||
}
|
||||
} break;
|
||||
case 0x6A: { // numpad *
|
||||
CpuTimeScalarReset();
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user