mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Disable the hidden input when the model is readOnly or keyboard disabled
This commit is contained in:
@@ -2965,11 +2965,11 @@ class TextEditorComponent {
|
||||
}
|
||||
|
||||
setInputEnabled (inputEnabled) {
|
||||
this.props.model.update({readOnly: !inputEnabled})
|
||||
this.props.model.update({enableKeyboardInput: inputEnabled})
|
||||
}
|
||||
|
||||
isInputEnabled (inputEnabled) {
|
||||
return !this.props.model.isReadOnly()
|
||||
isInputEnabled () {
|
||||
return !this.props.model.isReadOnly() && this.props.model.isKeyboardInputEnabled()
|
||||
}
|
||||
|
||||
getHiddenInput () {
|
||||
|
||||
Reference in New Issue
Block a user