ensure tapping on editor brings up soft keyboard

This commit is contained in:
Kartik K. Agaram 2024-02-16 21:12:02 -08:00
parent 4e9298dda1
commit 219ee11686
2 changed files with 2 additions and 0 deletions

View File

@ -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))

View File

@ -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))