Prevent ctrl + enter shortuct when no grammar highlights are present #4

This commit is contained in:
Aljaž Grilc 2025-06-05 08:17:19 +02:00
parent 04cd5f2e7d
commit b99d233abc

View File

@ -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()