mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Don't call preventDefault for spaces to prevent browser scrolling
This commit is contained in:
@@ -403,7 +403,9 @@ EditorComponent = React.createClass
|
||||
editor.insertText(event.data)
|
||||
inputNode.value = event.data
|
||||
|
||||
event.preventDefault()
|
||||
# If we prevent the insertion of a space character, then the browser
|
||||
# interprets the spacebar keypress as a page-down command.
|
||||
event.preventDefault() unless event.data is ' '
|
||||
|
||||
onInputFocused: ->
|
||||
@setState(focused: true)
|
||||
|
||||
Reference in New Issue
Block a user