KeyEvent: Support modifiers / UI: Open file chooser on ctrl-O (#707)

* file chooser on ctrl-o

* typo fix
This commit is contained in:
IndieDriver
2017-06-07 20:25:38 +02:00
committed by Justin Moore
parent 8cf8707d4e
commit 8e1c0201ad
3 changed files with 27 additions and 4 deletions

View File

@@ -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;