2014-03-13 14:32 GMT+01:00 Ankit Shah: > I'm new to LyX source code. I want to work on the bug ticket > #9008<http://www.lyx.org/trac/ticket/9008>. > I'm good at C,C++. Can anyone please explain me the bug. I'm not able to > replicate the bug. How are the shortcuts defined in the strings column? > i.e. how do i map them to key sequences. Also it would be great if someone > could direct me as to where can i find the piece of code related to > shortcuts. >
In this case, the shortcuts are defined in the ui files, which you'll find in src/frontends/qt4/ui. Specifically, look in FindAndReplaceUi.ui. You can open and edit these files with the Qt Designer, but note that you should use a designer version not newer than the oldest Qt version supported by LyX (currently Qt 4.5.0). Qt uses the convention of Ampersands to mark shortcuts, e.g. &Find makes "Alt+F" the shortcut in this label, whereas "Fi&nd" would make the "Alt+n" the shortcut. Hope this helps. Jürgen > > -- > Ankit Shah >