Prevent ctrl + enter shortuct when no grammar highlights are present #4
This commit is contained in:
@@ -354,7 +354,9 @@ class BesService {
|
||||
}
|
||||
break
|
||||
case 'Enter':
|
||||
// Handle Ctrl + Enter
|
||||
if (e.ctrlKey) {
|
||||
if (!this.highlightElements.length) return
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
this.acceptReplacement()
|
||||
|
Reference in New Issue
Block a user