about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--source.lua1
-rw-r--r--source_edit.lua1
2 files changed, 1 insertions, 1 deletions
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))