immutable class TK_KEY_EVENT < $TK_EVENT
****
Keyboard key related events. Can be used to indicate pressing a particular key. Eg:
___TK_KEY_EVENT::Press.Return__Hit_the_return_key
___TK_KEY_EVENT::Release.Tab___Release_the_tab_key
___TK_KEY_EVENT::Press+'c'_____Hit_the_character_"c"


Ancestors
$TK_EVENT



Public


Constants
const cb_str: STR := "%# @a @b @c @d @f @h %k @m @o @p %s @t @w %x %y &%A @B @E %K @N @R %T %W %X %Y";

Features
Alt:SAME .. Included as Alt
**** Event Modifier: hold down the alt key as well to trigger the event
Ampersand: SAME
Apostrophe: SAME
Asterisk: SAME
Backslash: SAME
Backspace: SAME
BraceLeft: SAME
BraceRight: SAME
BracketLeft: SAME
BracketRight: SAME
Caps_lock:SAME .. Included as Caps_lock
**** lock,any are pSather Event Modifier: hold down the caps lock key as well to trigger the event
Comma: SAME
Control:SAME .. Included as Control
**** Event Modifier: hold down the control key as well to trigger the event
Delete: SAME
Dollar: SAME
Double:SAME .. Included as Double
**** Double occurrence of the same event, usually a click
Down: SAME
Escape: SAME
Exclamation: SAME
Function(n: INT): SAME
Grave: SAME
Home: SAME
Ignore_others:SAME .. Included as Ignore_others
**** keywords
Left: SAME
Linefeed: SAME
Meta:SAME .. Included as Meta
**** Event Modifier: hold down the meta key as well to trigger the event
Minus: SAME
Mouse_1:SAME .. Included as Mouse_1
**** Modifier: while mouse button 1 is being held down
Mouse_2:SAME .. Included as Mouse_2
Mouse_3:SAME .. Included as Mouse_3
ParenLeft: SAME
ParenRight: SAME
Pause: SAME
Percent: SAME
Period: SAME
Plus: SAME
Press: SAME
Prior: SAME
Quoteright: SAME
Release: SAME
Return: SAME
Right: SAME
ScrollLock: SAME
Shift:SAME .. Included as Shift
**** Event Modifier: hold down the shift key as well to trigger the event
Slash: SAME
Space: SAME
Tab: SAME
Triple:SAME .. Included as Triple
Underscore: SAME
Up: SAME
plus(c: CHAR): SAME
**** Detail field. Only works for alphnumeric keys
str: STR .. Included as str
**** Return the string that Tcl needs to describe this event


Private

attr cb_stored: STR;
**** String used to get the callback info from the widget
attr cb_stored: STR;
**** String used to get the callback info from the widget
create(s: STR): SAME .. Included as create
**** Should not be created directly, but by one of the other calls.
const default_cb: STR := "@# @a @b @c @d @f @h @k @m @o @p @s @t @w @x @y @@A @B @E @K @N @R @T @W @X @Y"; .. Included as default_cb
**** No callback info until a string is actualy set, no information is provided
attr detail: STR; .. Included as detail
****
attr detail: STR; .. Included as detail
****
attr has_detail: BOOL; .. Included as has_detail
**** By default detail is not specified
attr has_detail: BOOL; .. Included as has_detail
**** By default detail is not specified
attr internal_str: STR; .. Included as internal_str
attr internal_str: STR; .. Included as internal_str
prepend(c: STR): SAME .. Included as prepend
**** Prepend some new modifier
set_detail(s: STR): SAME .. Included as set_detail
**** Set the detail field of this event.
verify_non_void(c: STR) .. Included as verify_non_void
**** Make sure that an event is set

The Sather Home Page