]> git.lyx.org Git - lyx.git/commit
keytests: Implemented use of additional shortcuts in keytest.py
authorKornel Benko <kornel@lyx.org>
Sun, 21 May 2017 10:42:27 +0000 (12:42 +0200)
committerKornel Benko <kornel@lyx.org>
Sun, 21 May 2017 10:55:47 +0000 (12:55 +0200)
commitfa3e656af76a0691cfe3411336783cfc53a63ca2
tree3d938d42b9c307bdf07adc0f312cb596a668e363
parent125154dbf1e83ec89d58aa7afcce694e7b04c5c5
keytests: Implemented use of additional shortcuts in keytest.py

Now, before starting a test with 'TestBegin' in any *-in.txt file
we can create ne shortcuts used by this test.
Defining a shortcut:
UseShortcut "<shortcut>" "<function>"
Actually adding the new shortcuts to be used by the next lyx-session:
PrepareShortcuts

Use example is found in findadv-combined-in.txt
The UseShortcut-entries will be traslated into '\bind "<shortcut>" "<function>"'
and with the PrepareShortcuts-entry added to the active use file 'user.bind'
development/autotests/findadv-combined-in.txt
development/autotests/keytest.py