Semantic Shortcut Key Combination
CUE has a
semantic shortcut feature (described in
Semantic Shortcuts) that provides
keyboard-only access to
CUE
features. By default, a semantic shortcut is introduced by pressing
the Shift
key twice in quick succession: this
displays a small dialog listing additional keys the user can press to
complete a shortcut and execute an action. You can, however, replace
the Shift Shift
introductory key sequence with some
other key sequence or key combination if required. You can also change
the maximum interval between the keypresses in an introductory key
sequence.
To change the default semantic shortcut settings:
-
If necessary, switch user to
root
.$
sudo su -
Open
/etc/escenic/cue-web/config.yml
for editing. For example:#
nano/etc/escenic/cue-web/config.yml
-
To replace the default
Shift Shift
sequence add the following setting:keyboardShortcuts: semanticToggle: "new-sequence"
where new-sequence is a key sequence specification such as
mod mod
(which specifies a key sequence) ormod+alt+a
(which specifies a key combination). -
If you are using a key sequence (either the default shift shift or a sequence you have defined yourself), you can also control how quickly the user has to type the sequence in order for it to be recognized. By default, the interval between the two keypresses must not exceed 500 milliseconds. To increase the interval to 600 milliseconds, for example, you would need to enter a
resetSequenceTimeout
property as a child of the samekeyboardShortcuts
property:keyboardShortcuts: resetSequenceTimeout: 600
-
Save the file.
-
Enter:
#
dpkg-reconfigure cue-web-3.10This reconfigures CUE with the change you made.
Note that:
-
The key identifier
mod
represents thectrl
key on Windows or thecommand
key on Mac. You should always usemod
rather thanctrl
orcommand
to ensure that semantic shortcuts will work on both platforms. -
You can in theory use any sequence or combination of keys to introduce semantic shortcuts, but in order to avoid problems you are recommended to stick to either a modifier sequence such as shift shift or a combination of modifiers and characters such as
mod+alt+a
. You should also take care to avoid combinations that are already in use either by CUE itself or by the browser.
For more detailed information about supported key combinations and how to specify them, see the documentation of the Javascript library used to provide this functionality: Mousetrap.