This commit is contained in:
parent
9e9e8ed35c
commit
75ec5c9087
2
app.lua
2
app.lua
|
@ -237,6 +237,7 @@ function App.mouse_y()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- all textinput events are also keypresses
|
-- all textinput events are also keypresses
|
||||||
|
-- TODO: handle chords of multiple keys
|
||||||
function App.run_after_textinput(t)
|
function App.run_after_textinput(t)
|
||||||
App.keypressed(t)
|
App.keypressed(t)
|
||||||
App.textinput(t)
|
App.textinput(t)
|
||||||
|
@ -246,6 +247,7 @@ function App.run_after_textinput(t)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- not all keys are textinput
|
-- not all keys are textinput
|
||||||
|
-- TODO: handle chords of multiple keys
|
||||||
function App.run_after_keychord(chord)
|
function App.run_after_keychord(chord)
|
||||||
App.keychord_pressed(chord)
|
App.keychord_pressed(chord)
|
||||||
App.keyreleased(chord)
|
App.keyreleased(chord)
|
||||||
|
|
Loading…
Reference in New Issue