Hi, I have tried to define an accelerator for a button, then I've seen that the accelerator for menu items work on more platforms so I've tried to define an accelerator for a menu item, but it still doesn't work.
I've defined the menu item: $self->{FileStop} = $self->{FileMenu}->Append(-1, t("S&top\tEsc")); #... then the accelerator: my $accelerator = Wx::AcceleratorTable->new([wxACCEL_NORMAL, WXK_ESCAPE, $self->{FileStop}]); $self->SetAcceleratorTable( $accelerator ); Instead of WXK_ESCAPE I have also tried the integer 27 but with no results. I want that accelerator to push a button or execute a menu item when pressing escape. I thought that "\tEscape" string in the menu item definition might create conflicts, and I have also tried to name it "Esc" or "Escap", but with no results. If I execute manually that menu item, it works as it should. Am I missing something from the accelerator definition or what can be the problem? Thanks. Octavian