mirror of
https://github.com/wekan/wekan.git
synced 2026-02-27 18:34:07 +01:00
Merge branch 'main' of https://github.com/seve12/wekan
This commit is contained in:
commit
f9fb02457c
1 changed files with 7 additions and 5 deletions
|
|
@ -314,7 +314,8 @@ BlazeComponent.extendComponent({
|
||||||
// Pressing Tab should open the form of the next column, and Maj+Tab go
|
// Pressing Tab should open the form of the next column, and Maj+Tab go
|
||||||
// in the reverse order
|
// in the reverse order
|
||||||
} else if (evt.keyCode === 9) {
|
} else if (evt.keyCode === 9) {
|
||||||
evt.preventDefault();
|
// Prevent custom focus movement on Tab key for accessibility
|
||||||
|
// evt.preventDefault();
|
||||||
const isReverse = evt.shiftKey;
|
const isReverse = evt.shiftKey;
|
||||||
const list = $(`#js-list-${this.data().listId}`);
|
const list = $(`#js-list-${this.data().listId}`);
|
||||||
const listSelector = '.js-list:not(.js-list-composer)';
|
const listSelector = '.js-list:not(.js-list-composer)';
|
||||||
|
|
@ -414,10 +415,11 @@ BlazeComponent.extendComponent({
|
||||||
// event propagation to prevent the card from submitting (on `Enter`) or
|
// event propagation to prevent the card from submitting (on `Enter`) or
|
||||||
// going on the next column (on `Tab`).
|
// going on the next column (on `Tab`).
|
||||||
onKeydown(evt, commands) {
|
onKeydown(evt, commands) {
|
||||||
if (evt.keyCode === 9 || evt.keyCode === 13) {
|
// Prevent custom focus movement on Tab key for accessibility
|
||||||
evt.stopPropagation();
|
// if (evt.keyCode === 9 || evt.keyCode === 13) {
|
||||||
return commands.KEY_ENTER;
|
// evt.stopPropagation();
|
||||||
}
|
// return commands.KEY_ENTER;
|
||||||
|
//}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue