Added wxAccelerators (sort of)

Moved configure (once again)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-09-02 22:23:57 +00:00
parent 8429bec1e8
commit bcf1fa6bb4
93 changed files with 12757 additions and 152 deletions

View File

@@ -191,6 +191,16 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_e
bool ret = win->GetEventHandler()->ProcessEvent( event );
if (!ret)
{
int command = win->GetAcceleratorTable()->GetCommand( event );
if (command != -1)
{
wxCommandEvent command_event( wxEVT_COMMAND_MENU_SELECTED, command );
ret = win->GetEventHandler()->ProcessEvent( command_event );
}
}
if (ret)
{
if ((gdk_event->keyval >= 0x20) && (gdk_event->keyval <= 0xFF))
@@ -1754,6 +1764,11 @@ bool wxWindow::TransferDataFromWindow(void)
return TRUE;
}
void wxWindow::SetAcceleratorTable( const wxAcceleratorTable& accel )
{
m_acceleratorTable = accel;
}
void wxWindow::OnInitDialog( wxInitDialogEvent &WXUNUSED(event) )
{
TransferDataToWindow();