about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-02-16 21:28:08 -0800
committerKartik K. Agaram <vc@akkartik.com>2024-02-16 21:28:08 -0800
commit28aac522358b88fe2477bc7e95d8f72ed49cca29 (patch)
tree59364b12e1930a3312e649ea1e84d18888feaa50
parent6b33c9e22310cd50c5e68b411e6473a8309ffe00 (diff)
parent219ee116865f8ef2b60fb771c4ad53f5a7dab685 (diff)
downloadtext.love-28aac522358b88fe2477bc7e95d8f72ed49cca29.tar.gz
Merge lines.love
-rw-r--r--edit.lua1
-rw-r--r--source_edit.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/edit.lua b/edit.lua
index 5fa0472..83c5de8 100644
--- a/edit.lua
+++ b/edit.lua
@@ -152,6 +152,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))