text entry, partial support

This commit is contained in:
airstruck
2015-11-01 17:28:53 -05:00
parent c069c8d310
commit 0a36a6b411
7 changed files with 170 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ end
local eventNames = {
'Reshape', -- widget's dimensions changed
'Display', -- widget is being drawn
'PreDisplay', 'Display', -- before/after widget is drawn
'KeyPress', 'KeyRelease', -- keyboard key pressed/released
'TextInput', -- text is entered
'Move', -- cursor moves, no button pressed
@@ -29,7 +29,7 @@ local eventNames = {
'PressDrag', -- pressed cursor moves, targets originating widget
'PressMove', -- pressed cursor moves, targets widget at cursor position
'Press', -- cursor is pressed and released on same widget
'Change', -- widget's value changed via Widget:setValue
'Change', -- widget's value changed via Widget:setValue
}
local weakKeyMeta = { __mode = 'k' }