mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
📝 Shorten comment
This commit is contained in:
@@ -429,10 +429,8 @@ class EditorView extends View
|
||||
lastInput = e.originalEvent.data
|
||||
@editor.insertText(lastInput)
|
||||
|
||||
# Return true if the last input was a space
|
||||
# This prevents parent elements from scrolling
|
||||
if lastInput is ' '
|
||||
true
|
||||
true # Prevents parent elements from scrolling when a space is typed
|
||||
else
|
||||
@hiddenInput.val(lastInput)
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user