1
0
mirror of https://github.com/odrling/Aegisub synced 2025-04-11 22:56:02 +02:00

Skip unprocessed key events in the style manager

Originally committed to SVN as r6414.
This commit is contained in:
Thomas Goyne 2012-02-01 00:48:33 +00:00
parent 3be4693480
commit b48436c5de

View File

@ -1023,10 +1023,6 @@ void DialogStyleManager::MoveStyles(bool storage, int type) {
void DialogStyleManager::OnKeyDown(wxKeyEvent &event) {
wxCommandEvent evt;
switch(event.GetKeyCode()) {
case WXK_ESCAPE :
OnClose(evt);
break;
case WXK_DELETE :
if (wxWindow::FindFocus()==StorageList) {
OnStorageDelete(evt);
@ -1058,7 +1054,9 @@ void DialogStyleManager::OnKeyDown(wxKeyEvent &event) {
PasteToStorage();
}
}
break;
default:
event.Skip();
break;
}
}