Skip unprocessed key events in the style manager
Originally committed to SVN as r6414.
This commit is contained in:
parent
3be4693480
commit
b48436c5de
1 changed files with 3 additions and 5 deletions
|
@ -1023,10 +1023,6 @@ void DialogStyleManager::MoveStyles(bool storage, int type) {
|
||||||
void DialogStyleManager::OnKeyDown(wxKeyEvent &event) {
|
void DialogStyleManager::OnKeyDown(wxKeyEvent &event) {
|
||||||
wxCommandEvent evt;
|
wxCommandEvent evt;
|
||||||
switch(event.GetKeyCode()) {
|
switch(event.GetKeyCode()) {
|
||||||
case WXK_ESCAPE :
|
|
||||||
OnClose(evt);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case WXK_DELETE :
|
case WXK_DELETE :
|
||||||
if (wxWindow::FindFocus()==StorageList) {
|
if (wxWindow::FindFocus()==StorageList) {
|
||||||
OnStorageDelete(evt);
|
OnStorageDelete(evt);
|
||||||
|
@ -1058,7 +1054,9 @@ void DialogStyleManager::OnKeyDown(wxKeyEvent &event) {
|
||||||
PasteToStorage();
|
PasteToStorage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
event.Skip();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue