On Jan 3, 2007, at 10:53 AM, Jean-Marc Lasgouttes wrote:


The following patch aims at improving the situation of shortcuts in
GUI. It basically boils down to two changes:

- in GuiApplication, make qt_trans (now qt_trans_) a member of the
  application, so that it does not get deleted at the end of the
  contructor. This means that translation of qt stuff now actually
  works (key modifiers, file dialog...).

- LyXKeySym::print now uses a bool parameter telling whether we want a
  string suitable for GUI (with translated modifiers and maybe special
  Mac characters) or a internal version (the old Ctrl+O).

The rest of the path is just the propagation of the second part.

Objections? Bennett, before I commit, I'll ask you to try it out, as
usual. Now all shortcuts should be displayed in the right way.

For the most part it seems to work: the proper symbols for modifier keys are used in the info bar at the bottom of the screen (whatever that's called) whenever the lfun is displayed.

However, sometimes nothing gets displayed in the info bar when entering keyboard shortcuts, even though it should. Thus, I have <Cmd><Shift>F bound to footnote-insert; this will not display in the info bar until the Insert menu has been opened. Same with <Cmd><Opt>D, which opens the Document Settings dialog: that doesn't get displayed until the Document menu has been opened. (And these are independent: opening the Insert menu will not result in <Cmd><Opt>D being displayed; only opening the Document menu does.)

I also notice that certain keyboard shortcuts never display: <Cmd>E, which results in a "Font: Emphasis On" message (dis)appearing, but not the shortcut itself. (I'm not sure if these shortcuts are supposed to display; if they are, then perhaps this is related to the fact that these shortcuts do not have corresponding menu items.)

Bennett

Reply via email to