[Gtk-sharp-list] Menu editable keyboard accelerators at runtime ?

Jesper K. Pedersen linux at famped.dk
Thu Apr 5 19:05:08 UTC 2012


I have just noticed an odd challenge with my GTKsharp applications.

Just having started to use Monodevelop to write applications I notice
that the accelerators I set for menus can be changen at runtime by the
user.

I am using a Debian 6 stable ie. Monodeveloper 2.4.

I tried going back to basics and followed the Monodeveloper tutorial
for making the "logviewer" software example
(http://monodevelop.com/Documentation/Stetic_GUI_Designer)

When I make the menubar with the typical File -> Open / Close / Exit
and set the accelerators for Open, Close and Exit they show up nicely
in the menu as expected.

Ie. like this :
File
Open   ctrl-O
Close	ctrl-L
Exit	ctrl-X

Now when running the program - open the menu and highlight a menu entry
and press a key that is not assigned to one of the accelerators - the
highlighted entrys accelerator changes to the key I pressed.

Is this normal behaviour - and not least - how do I disable this
behaviour?


-- 
ordo ab chao!


More information about the Gtk-sharp-list mailing list