2
0

Prevent duplicate REST API requests on submitting account personal note with ctrl+enter (#34213)

This commit is contained in:
Claire
2025-03-20 00:29:26 +01:00
committed by GitHub
parent f7b1769e8a
commit 290d57d6d9

View File

@@ -101,10 +101,10 @@ class AccountNote extends ImmutablePureComponent {
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
e.preventDefault();
this._save();
if (this.textarea) {
this.textarea.blur();
} else {
this._save();
}
} else if (e.keyCode === 27) {
e.preventDefault();