From: Axel S. <Axe...@en...> - 2009-03-30 22:10:56
|
On Mar 30, 2009, at 21:53, Michael Dever wrote: > I have had the same problem with mine, Keyboard Shortcuts and > accelerators do not work, at all. I tried the code that Axel sent > to the list earlier, that didn't work. > > It hasn't worked on Fedora 10, Ubuntu 8.04, 8.10, Linux Mint 5 or > Linux Mint 6. I don't think it's an OS dependant thing. Basically, I'm a bit at a loss as to what all this XML stuff is about. Maybe if somebody has an interest in this and can figure this out (maybe by asking on the Gtk+ list) we could put up some more specific documentation. Axel. > > Michael > > http://www.mickinator.com/wordpress > > On Mon, Mar 30, 2009 at 8:48 PM, Colin Paul Adams > <co...@co...> wrote: > Are accelerators supposed to work? If so how? > > I have a menu and toolbar generated from an XML string, and using the > uiManager interface call: > > mapM_ (\act -> actionGroupAddActionWithAccel standard_group act > Nothing) > [load_game_action, new_game_action, quit_action, rotate_action] > > I install the standard accelerators. > > So I see a menu item with quit stock Icon, the word Quit, and the > characters Ctrl+Q, but no matter how I try, I cannot get the > application to respond to the Ctrl-Q sequance (or Ctrl-Shift-Q). > > It responds to pressing the quit menu item with the mouse, or the quit > toolbar item. > > Ditto for the other standard accelerators installed. > -- > Colin Adams > Preston Lancashire > > ---------------------------------------------------------------------- > -------- > _______________________________________________ > Gtk2hs-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk2hs-users > > ---------------------------------------------------------------------- > -------- > _______________________________________________ > Gtk2hs-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk2hs-users |