mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Custom Fields StringTemplate, Ctrl-Enter the same as the button "Save"
This commit is contained in:
parent
c845d25ae5
commit
1590701fc9
1 changed files with 3 additions and 1 deletions
|
@ -272,7 +272,9 @@ CardCustomField.register('cardCustomField');
|
|||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
|
||||
if (event.target.value.trim()) {
|
||||
if (event.metaKey || event.ctrlKey) {
|
||||
this.find('button[type=submit]').click();
|
||||
} else if (event.target.value.trim()) {
|
||||
const inputLast = this.find('input.last');
|
||||
|
||||
let items = this.getItems();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue