]> git.lyx.org Git - features.git/commit
This patch allows for multiple LFUNs to be bound to a single key, via a new command...
authorRichard Heck <rgheck@comcast.net>
Wed, 24 Sep 2008 15:08:46 +0000 (15:08 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 24 Sep 2008 15:08:46 +0000 (15:08 +0000)
commit6576aed3d52f3e2ea58db2789c52acdff24fbe02
tree0cd621b93dfaec85f2a931ae77e4bce8b0984408
parentb8cf8cbab2d5f3a2e3897a79f5103e8e46f1614b
This patch allows for multiple LFUNs to be bound to a single key, via a new command-alternatives function, to be used like so:
\bind "Tab" "command-alternatives" "completion-accept;cell-forward"
The first of the metioned functions that is enabled with be called.

The code is pretty trivial and just stolen from command-sequence.

The binding mentioned is more or less the point of the patch, but we still need to decide exactly what the bindings should be. There have been various threads concerning this. You can use the above for testing. Add it to site.bind, replacing the existing binding.

Jose: Once the bindings have been sorted out, that will complete the work on this we said we wanted to do for rc3.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26518 a592a061-630c-0410-9148-cb99ea01b6c8
src/FuncCode.h
src/LyXAction.cpp
src/LyXFunc.cpp