mirror of https://github.com/odrling/Aegisub
Remove AegisubApp::OnKeyDown
It was an odd hack to ensure that medusa mode didn't mark keydown events as processed (resulting in EVT_CHAR never triggering), but there should be a better way to do this when we reintroduce global timing hotkeys. Originally committed to SVN as r5237.
This commit is contained in:
parent
a4da8c3a61
commit
c3325cb543
|
@ -575,7 +575,6 @@ void AegisubApp::MacOpenFile(const wxString &filename) {
|
||||||
// Event table
|
// Event table
|
||||||
BEGIN_EVENT_TABLE(AegisubApp,wxApp)
|
BEGIN_EVENT_TABLE(AegisubApp,wxApp)
|
||||||
EVT_MOUSEWHEEL(AegisubApp::OnMouseWheel)
|
EVT_MOUSEWHEEL(AegisubApp::OnMouseWheel)
|
||||||
EVT_KEY_DOWN(AegisubApp::OnKey)
|
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
|
@ -595,15 +594,3 @@ void AegisubApp::OnMouseWheel(wxMouseEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// @brief Key pressed
|
|
||||||
/// @param event wxEvent
|
|
||||||
/// Noone has any idea what this does anymore.
|
|
||||||
void AegisubApp::OnKey(wxKeyEvent &event) {
|
|
||||||
//frame->audioBox->audioDisplay->AddPendingEvent(event);
|
|
||||||
// if (!event.GetSkipped()) {
|
|
||||||
// event.Skip();
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,6 @@ private:
|
||||||
PluginManager *plugins;
|
PluginManager *plugins;
|
||||||
|
|
||||||
void OnMouseWheel(wxMouseEvent &event);
|
void OnMouseWheel(wxMouseEvent &event);
|
||||||
void OnKey(wxKeyEvent &key);
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
/// stdout log emitter
|
/// stdout log emitter
|
||||||
|
|
Loading…
Reference in New Issue