mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Move hidden input to the same position with cursor view.
This is required to make IME's input bubble follow the cursor.
This commit is contained in:
@@ -88,6 +88,7 @@ class Editor extends View
|
||||
@configure()
|
||||
@bindKeys()
|
||||
@handleEvents()
|
||||
@handleImeEvents()
|
||||
@cursorViews = []
|
||||
@selectionViews = []
|
||||
@pendingChanges = []
|
||||
@@ -696,6 +697,10 @@ class Editor extends View
|
||||
else
|
||||
@gutter.addClass('drop-shadow')
|
||||
|
||||
handleImeEvents: ->
|
||||
@on 'cursor:moved', =>
|
||||
@hiddenInput.offset(@getCursorView().offset())
|
||||
|
||||
selectOnMousemoveUntilMouseup: ->
|
||||
lastMoveEvent = null
|
||||
moveHandler = (event = lastMoveEvent) =>
|
||||
|
||||
Reference in New Issue
Block a user