From 219ee116865f8ef2b60fb771c4ad53f5a7dab685 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 16 Feb 2024 21:12:02 -0800 Subject: ensure tapping on editor brings up soft keyboard --- edit.lua | 1 + source_edit.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/edit.lua b/edit.lua index bc85a93..b096274 100644 --- a/edit.lua +++ b/edit.lua @@ -234,6 +234,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)) 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)) -- cgit 1.4.1-2-gfad0