On 03/15/2014 05:52 AM, Ankit Shah wrote:
On Thu, Mar 13, 2014 at 7:40 PM, Jürgen Spitzmüller <sp...@lyx.org
<mailto:sp...@lyx.org>> wrote:
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
I checked out other combination for the keys but none seem to adjust
correctly except few. The problem is because Advanced find and replace
is embedded into main workspace. A similar kind of problem does not
occur in normal find and replace box. Can we separate the advanced
find and replace box like the normal find and replace which will
prioritize the Advance find and replace shortcuts over the menu bar
shortcuts.
Yes, that is the problem. There aren't many shortcut keys available, and
a lot of them are in use in the main window.
I'm new to Qt so can anyone help how do I separate the advance find
and replace window like the normal find and replace window.
I suppose the first question is whether we want to do that, or just live
with the conflicts.
Richard