Call ev.Skip() for unhandled char events in card editor. Fixes #65 (and maybe also #53)

This commit is contained in:
Twan van Laarhoven
2020-06-01 13:47:44 +02:00
parent 41de22b182
commit 7952a889c9
3 changed files with 15 additions and 11 deletions
+5 -1
View File
@@ -453,7 +453,11 @@ void DataEditor::onChar(wxKeyEvent& ev) {
GetParent()->HandleWindowEvent(evt);
}
} else if (current_editor) {
current_editor->onChar(ev);
if (!current_editor->onChar(ev)) {
ev.Skip();
}
} else {
ev.Skip();
}
}