Browse Source

feat: Added "ESC" hook for editor

pull/7619/head
Ruslan Semak 2 months ago
parent
commit
caad5cfaea
1 changed files with 3 additions and 0 deletions
  1. 3
      client/components/editor.vue

3
client/components/editor.vue

@ -275,6 +275,9 @@ export default {
if ((e.ctrlKey || e.metaKey) && e.key === 's') {
e.preventDefault() // Предотвращаем стандартное поведение браузера
this.save() // Вызываем метод сохранения
} else if (e.key === 'Escape') {
e.preventDefault()
this.exit() // Вызываем метод выхода
}
},
openPropsModal(name) {

Loading…
Cancel
Save