mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
Document :key
This commit is contained in:
parent
8659b31f71
commit
3f695ef471
2 changed files with 5 additions and 4 deletions
|
|
@ -1053,8 +1053,8 @@ ON-TOUCH-CANCEL-HANDLER is nil unbind the event."))
|
|||
|
||||
(defgeneric set-on-character (clog-obj on-character-handler &key one-time)
|
||||
(:documentation "Set the ON-CHARACTER-HANDLER for CLOG-OBJ. If
|
||||
ON-CHARACTER-HANDLER is nil unbind the event. Setting this event
|
||||
will replace a on-key-down"))
|
||||
ON-CHARACTER-HANDLER is nil unbind the event. Setting this event to
|
||||
nil will unbind on-key-press also."))
|
||||
|
||||
(defmethod set-on-character ((obj clog-obj) handler &key (one-time nil))
|
||||
(set-event obj "keypress"
|
||||
|
|
|
|||
|
|
@ -234,8 +234,9 @@ Events in clog-base
|
|||
:meta-key t or nil if meta-key held down
|
||||
|
||||
:event-type :keyboard
|
||||
:key-code A key code sometimes called a scan code for the key pressed
|
||||
:char-code UTF-8 representation for key pressed when possible
|
||||
:key String of key pressed, with out modifiers like ctrl characters
|
||||
:key-code The utf-16 value of :key
|
||||
:char-code UTF-8 representation for key pressed when possible - deprecated
|
||||
:alt-key t or nil if alt-key held down
|
||||
:ctrl-key t or nil if ctrl-key held down
|
||||
:shift-key t or nil if shift-key held down
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue