bugfix in source editor
This commit is contained in:
parent
5afe11a9c4
commit
4af6f7b9e7
|
@ -285,6 +285,7 @@ end
|
||||||
|
|
||||||
function source.mouse_press(x,y, mouse_button)
|
function source.mouse_press(x,y, mouse_button)
|
||||||
Cursor_time = 0 -- ensure cursor is visible immediately after it moves
|
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('mouse click', x, y)
|
||||||
--? print(Editor_state.left, Editor_state.right)
|
--? print(Editor_state.left, Editor_state.right)
|
||||||
--? print(Log_browser_state.left, Log_browser_state.right)
|
--? print(Log_browser_state.left, Log_browser_state.right)
|
||||||
|
|
|
@ -234,7 +234,6 @@ function edit.quit(State)
|
||||||
end
|
end
|
||||||
|
|
||||||
function edit.mouse_press(State, x,y, mouse_button)
|
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
|
if State.search_term then return end
|
||||||
State.mouse_down = mouse_button
|
State.mouse_down = mouse_button
|
||||||
--? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos))
|
--? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos))
|
||||||
|
|
Loading…
Reference in New Issue