mirror of https://github.com/odrling/Aegisub
Remove pointless keydown handlers on things that can't have keyboard focus.
Originally committed to SVN as r3674.
This commit is contained in:
parent
983434a6c3
commit
c0364b7be1
|
@ -115,24 +115,10 @@ DialogDetachedVideo::~DialogDetachedVideo() {
|
||||||
///////////////
|
///////////////
|
||||||
// Event table
|
// Event table
|
||||||
BEGIN_EVENT_TABLE(DialogDetachedVideo,wxDialog)
|
BEGIN_EVENT_TABLE(DialogDetachedVideo,wxDialog)
|
||||||
EVT_KEY_DOWN(DialogDetachedVideo::OnKey)
|
|
||||||
EVT_CLOSE(DialogDetachedVideo::OnClose)
|
EVT_CLOSE(DialogDetachedVideo::OnClose)
|
||||||
EVT_MOVE(DialogDetachedVideo::OnMove)
|
EVT_MOVE(DialogDetachedVideo::OnMove)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// @brief Key down
|
|
||||||
/// @param event
|
|
||||||
///
|
|
||||||
void DialogDetachedVideo::OnKey(wxKeyEvent &event) {
|
|
||||||
// Send to parent... except that it doesn't work
|
|
||||||
event.Skip();
|
|
||||||
GetParent()->GetEventHandler()->ProcessEvent(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// @brief Close window
|
/// @brief Close window
|
||||||
/// @param event
|
/// @param event
|
||||||
///
|
///
|
||||||
|
|
|
@ -62,7 +62,6 @@ private:
|
||||||
/// DOCME
|
/// DOCME
|
||||||
FrameMain *parent;
|
FrameMain *parent;
|
||||||
|
|
||||||
void OnKey(wxKeyEvent &event);
|
|
||||||
void OnClose(wxCloseEvent &event);
|
void OnClose(wxCloseEvent &event);
|
||||||
void OnMove(wxMoveEvent &event);
|
void OnMove(wxMoveEvent &event);
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,6 @@ private:
|
||||||
void OnStatusClear(wxTimerEvent &event);
|
void OnStatusClear(wxTimerEvent &event);
|
||||||
|
|
||||||
void OnVideoPlay(wxCommandEvent &event);
|
void OnVideoPlay(wxCommandEvent &event);
|
||||||
void OnKeyDown(wxKeyEvent &event);
|
|
||||||
|
|
||||||
void OnOpenRecentSubs (wxCommandEvent &event);
|
void OnOpenRecentSubs (wxCommandEvent &event);
|
||||||
void OnOpenRecentVideo (wxCommandEvent &event);
|
void OnOpenRecentVideo (wxCommandEvent &event);
|
||||||
|
|
|
@ -105,8 +105,6 @@ BEGIN_EVENT_TABLE(FrameMain, wxFrame)
|
||||||
|
|
||||||
EVT_CLOSE(FrameMain::OnCloseWindow)
|
EVT_CLOSE(FrameMain::OnCloseWindow)
|
||||||
|
|
||||||
EVT_KEY_DOWN(FrameMain::OnKeyDown)
|
|
||||||
|
|
||||||
EVT_MENU_OPEN(FrameMain::OnMenuOpen)
|
EVT_MENU_OPEN(FrameMain::OnMenuOpen)
|
||||||
EVT_MENU_RANGE(Menu_File_Recent,Menu_File_Recent+99, FrameMain::OnOpenRecentSubs)
|
EVT_MENU_RANGE(Menu_File_Recent,Menu_File_Recent+99, FrameMain::OnOpenRecentSubs)
|
||||||
EVT_MENU_RANGE(Menu_Video_Recent,Menu_Video_Recent+99, FrameMain::OnOpenRecentVideo)
|
EVT_MENU_RANGE(Menu_Video_Recent,Menu_Video_Recent+99, FrameMain::OnOpenRecentVideo)
|
||||||
|
@ -1783,18 +1781,6 @@ void FrameMain::OnStatusClear(wxTimerEvent &event) {
|
||||||
SetStatusText(_T(""),1);
|
SetStatusText(_T(""),1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// @brief Key down
|
|
||||||
/// @param event
|
|
||||||
///
|
|
||||||
void FrameMain::OnKeyDown(wxKeyEvent &event) {
|
|
||||||
audioBox->audioDisplay->GetEventHandler()->ProcessEvent(event);
|
|
||||||
event.Skip();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// @brief Next frame hotkey
|
/// @brief Next frame hotkey
|
||||||
/// @param event
|
/// @param event
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue