Prevent default ACE go-to-line alert when pressing Ctrl/Cmd+L.
This commit is contained in:
parent
de93dfd357
commit
88ef5ffe93
1 changed files with 5 additions and 0 deletions
|
@ -153,6 +153,11 @@ module.exports = class SpellView extends View
|
||||||
name: 'spell-beautify'
|
name: 'spell-beautify'
|
||||||
bindKey: {win: 'Ctrl-Shift-B', mac: 'Command-Shift-B|Ctrl-Shift-B'}
|
bindKey: {win: 'Ctrl-Shift-B', mac: 'Command-Shift-B|Ctrl-Shift-B'}
|
||||||
exec: -> Backbone.Mediator.publish 'spell-beautify'
|
exec: -> Backbone.Mediator.publish 'spell-beautify'
|
||||||
|
addCommand
|
||||||
|
name: 'prevent-line-jump'
|
||||||
|
bindKey: {win: 'Ctrl-L', mac: 'Command-L'}
|
||||||
|
passEvent: true
|
||||||
|
exec: -> # just prevent default ACE go-to-line alert
|
||||||
|
|
||||||
fillACE: ->
|
fillACE: ->
|
||||||
@ace.setValue @spell.source
|
@ace.setValue @spell.source
|
||||||
|
|
Reference in a new issue