From 5afe11a9c42062c23991d5da62c1d90616f4e7da Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 10 Sep 2024 19:25:11 -0700 Subject: don't always pop up keyboard on mobile devices We don't want to do this during app initialization because other forks might not start out with an editor on screen even if this one does. We don't want to perform this side-effect on edit.mouse_press, which also runs in tests. --- edit.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'edit.lua') diff --git a/edit.lua b/edit.lua index f65486c..9b4864c 100644 --- a/edit.lua +++ b/edit.lua @@ -228,7 +228,6 @@ 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