mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 08:50:13 +01:00
revert tiny change on input event keydown <-> keyup
This commit is contained in:
parent
b36920e657
commit
1c4b54d1ad
1 changed files with 1 additions and 3 deletions
|
|
@ -23,9 +23,7 @@ BlazeComponent.extendComponent({
|
||||||
this.data().setDescription(description);
|
this.data().setDescription(description);
|
||||||
},
|
},
|
||||||
// Pressing Ctrl+Enter should submit the form
|
// Pressing Ctrl+Enter should submit the form
|
||||||
// was keydown
|
'keydown form textarea'(evt) {
|
||||||
// extraevent for saving input. buffer of keydown vs buffer time
|
|
||||||
'keyup form textarea'(evt) {
|
|
||||||
if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) {
|
if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) {
|
||||||
const submitButton = this.find('button[type=submit]');
|
const submitButton = this.find('button[type=submit]');
|
||||||
if (submitButton) {
|
if (submitButton) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue