fix double shortcut issue

This commit is contained in:
Yuri Kuznetsov
2025-12-17 20:02:39 +02:00
parent 1f251eecb3
commit 03ac0a57c8
2 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ class ComposeEmailModalView extends EditModalView {
shortcutKeys = {
/** @this ComposeEmailModalView */
'Control+Enter': function (e) {
if (this.buttonList.findIndex(item => item.name === 'send' && !item.hidden) === -1) {
if (this.buttonList.findIndex(item => item.name === 'send' && !item.hidden && !item.disabled) === -1) {
return;
}

View File

@@ -73,7 +73,7 @@ class EditModalView extends ModalView {
return;
}
if (this.buttonList.findIndex(item => item.name === 'save' && !item.hidden) === -1) {
if (this.buttonList.findIndex(item => item.name === 'save' && !item.hidden && !item.disabled) === -1) {
return;
}
@@ -93,7 +93,7 @@ class EditModalView extends ModalView {
return;
}
if (this.buttonList.findIndex(item => item.name === 'save' && !item.hidden) === -1) {
if (this.buttonList.findIndex(item => item.name === 'save' && !item.hidden && !item.disabled) === -1) {
return;
}