on-char in snip%
Called to handle keyboard events when this snip has the keyboard focus and can handle events. The drawing context is provided, as well as the snip's location in display coordinates (the event uses display coordinates), and the snip's location in editor coordinates.
See also 'handles-events in
get-flags.
(-> voidsenda-snipon-chardcxyeditorxeditoryevent)
dc:dc<%>object
x: real number
y: real number
editorx: real number
editory: real number
event:key-event%objectThe
xandyarguments are the snip's location in display coordinates. Theeditorxandeditoryarguments are the snip's location in editor coordinates. To getevent's x location in snip coordinates, subtractxfrom(send.eventget-x)