diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-02-16 21:12:02 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-02-16 21:16:29 -0800 |
commit | 219ee116865f8ef2b60fb771c4ad53f5a7dab685 (patch) | |
tree | 7fa0a6da56349ced4f9df936014696c0f52c31fc /source_edit.lua | |
parent | 4e9298dda1fb67527d5fdd3172217b803b27e652 (diff) | |
download | text.love-219ee116865f8ef2b60fb771c4ad53f5a7dab685.tar.gz |
ensure tapping on editor brings up soft keyboard
Diffstat (limited to 'source_edit.lua')
-rw-r--r-- | source_edit.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source_edit.lua b/source_edit.lua index 19b754d..e376537 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -238,6 +238,7 @@ function edit.quit(State) end function edit.mouse_press(State, x,y, mouse_button) + love.keyboard.setTextInput(true) -- bring up keyboard on touch screen if State.search_term then return end State.mouse_down = mouse_button --? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) |