]> git.lyx.org Git - lyx.git/commit
Detect when one tries to bind a lfun to a prefix of longer commands
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 9 Dec 2022 13:45:14 +0000 (14:45 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 21 Jul 2023 22:01:34 +0000 (00:01 +0200)
commitc8c589353ade8d8b82248e8adf79ea2feb43b454
tree7439088540bd39d1ff18894eb665000c177a4d46
parentd59046512c204968122917758ee38d4529b1a03f
Detect when one tries to bind a lfun to a prefix of longer commands

Change KeyMap::getBinding to return FuncRequest::prefix in this case.

Add handling of this case in PrefShortcuts::validateNewShortcut.

What does not seem to work is that if, for example, accent-acute is
bound to M-s (which is a prefix for size-related bindings), and then
the binding is removed, the functions are not visibly restored.

Part of bug #10131.
src/KeyMap.cpp
src/KeyMap.h
src/frontends/qt/GuiPrefs.cpp