Remove pointless keydown handlers on things that can't have keyboard focus.

Originally committed to SVN as r3674.
This commit is contained in:
Thomas Goyne 2009-10-10 02:13:15 +00:00
parent 983434a6c3
commit c0364b7be1
4 changed files with 0 additions and 30 deletions

View File

@ -115,24 +115,10 @@ DialogDetachedVideo::~DialogDetachedVideo() {
///////////////
// Event table
BEGIN_EVENT_TABLE(DialogDetachedVideo,wxDialog)
EVT_KEY_DOWN(DialogDetachedVideo::OnKey)
EVT_CLOSE(DialogDetachedVideo::OnClose)
EVT_MOVE(DialogDetachedVideo::OnMove)
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
/// @param event
///

View File

@ -62,7 +62,6 @@ private:
/// DOCME
FrameMain *parent;
void OnKey(wxKeyEvent &event);
void OnClose(wxCloseEvent &event);
void OnMove(wxMoveEvent &event);

View File

@ -194,7 +194,6 @@ private:
void OnStatusClear(wxTimerEvent &event);
void OnVideoPlay(wxCommandEvent &event);
void OnKeyDown(wxKeyEvent &event);
void OnOpenRecentSubs (wxCommandEvent &event);
void OnOpenRecentVideo (wxCommandEvent &event);

View File

@ -105,8 +105,6 @@ BEGIN_EVENT_TABLE(FrameMain, wxFrame)
EVT_CLOSE(FrameMain::OnCloseWindow)
EVT_KEY_DOWN(FrameMain::OnKeyDown)
EVT_MENU_OPEN(FrameMain::OnMenuOpen)
EVT_MENU_RANGE(Menu_File_Recent,Menu_File_Recent+99, FrameMain::OnOpenRecentSubs)
EVT_MENU_RANGE(Menu_Video_Recent,Menu_Video_Recent+99, FrameMain::OnOpenRecentVideo)
@ -1783,18 +1781,6 @@ void FrameMain::OnStatusClear(wxTimerEvent &event) {
SetStatusText(_T(""),1);
}
/// @brief Key down
/// @param event
///
void FrameMain::OnKeyDown(wxKeyEvent &event) {
audioBox->audioDisplay->GetEventHandler()->ProcessEvent(event);
event.Skip();
}
/// @brief Next frame hotkey
/// @param event
///