]> git.lyx.org Git - lyx.git/commit
Allow to unbind without specifying the lfun
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Jul 2022 09:52:50 +0000 (11:52 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Jul 2022 16:57:03 +0000 (18:57 +0200)
commit1dedd398649679b99e8983b937500e56d5ef4b73
tree531334c94cc3b48e72d9837e7745a96757484357
parent11d5e31c65c36a8ba67a72b2486e1bdc1406f1e0
Allow to unbind without specifying the lfun

When unbinding a shortcut, it may happen that the exact definition of
the request is not known. A typical example it Tab, which is bound to
a complex command sequence.

In this case it is convenient to use the syntax
\unbind "Tab" "*"

To make this word, the special "*" value is translated to the
FuncRequest::unknown lfun and this value is considered specially in
several places.
src/KeyMap.cpp
src/frontends/qt/GuiPrefs.cpp