A non-negative integer less than
cl:char-code-limit, or a Gesture Spec keyword, or
A non-negative integer less than 64, or
make-gesture-spec returns a new Gesture Spec object gspec. This can be used to represent a keystroke consisting of the key indicated by data, modified by the modifier keys indicated by modifiers.
If data is an integer, it represents the key
). If data is a keyword, it must be one of the known Gesture Spec keywords and represents the key with the same name. If data is
nil, then gspec has a wild data component.
If modifiers is an integer, it represents modifier keys according to the values gesture-spec-accelerator-bit, gesture-spec-control-bit, gesture-spec-hyper-bit, gesture-spec-meta-bit, gesture-spec-shift-bit, and gesture-spec-super-bit. If modifiers is
nil, then gspec has a wild modifiers component.
Shift+X could potentially be represented by the unmodified uppercase character
X, or lowercase
x with the
Shift modifier. In order to ensure a consistent representation the latter form is not supported by Gesture Specs by default. That is, a
both-case-p character may not be combined with the single modifier
Shift in the accelerator argument. This can be overridden by passing a true value for can-shift-both-case-p.
(sys:make-gesture-spec (char-code #\X) 0)
LispWorks User Guide and Reference Manual - 20 Sep 2017