3 Коммиты e58d83b950 ... 46cd42ecdc

Автор SHA1 Сообщение Дата
  Kartik K. Agaram 46cd42ecdc Merge lines.love 2 месяцев назад
  Kartik K. Agaram 4af6f7b9e7 bugfix in source editor 2 месяцев назад
  Kartik K. Agaram 5afe11a9c4 don't always pop up keyboard on mobile devices 2 месяцев назад
5 измененных файлов с 2 добавлено и 3 удалено
  1. 0 1
      edit.lua
  2. 0 1
      main.lua
  3. 1 0
      run.lua
  4. 1 0
      source.lua
  5. 0 1
      source_edit.lua

+ 0 - 1
edit.lua

@@ -146,7 +146,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))

+ 0 - 1
main.lua

@@ -114,7 +114,6 @@ function check_love_version_for_tests()
 end
 
 function App.initialize(arg)
-  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
   love.keyboard.setKeyRepeat(true)
 
   love.graphics.setBackgroundColor(1,1,1)

+ 1 - 0
run.lua

@@ -168,6 +168,7 @@ end
 
 function run.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
   return edit.mouse_press(Editor_state, x,y, mouse_button)
 end
 

+ 1 - 0
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)

+ 0 - 1
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))