From 4af6f7b9e756e6b3add0ed61ea9fc0e0709d874a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 10 Sep 2024 19:35:06 -0700 Subject: [PATCH] bugfix in source editor --- source.lua | 1 + source_edit.lua | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/source.lua b/source.lua index d24957c..2c5e18e 100644 --- a/source.lua +++ b/source.lua @@ -285,6 +285,7 @@ end function source.mouse_press(x,y, mouse_button) Cursor_time = 0 -- ensure cursor is visible immediately after it moves + love.keyboard.setTextInput(true) -- bring up keyboard on touch screen --? print('mouse click', x, y) --? print(Editor_state.left, Editor_state.right) --? print(Log_browser_state.left, Log_browser_state.right) diff --git a/source_edit.lua b/source_edit.lua index 2dca05d..53bd16a 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -234,7 +234,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))