mirror of https://github.com/xwiki-labs/cryptpad
Prevent default `Tab` key behavior on menu items
This commit is contained in:
parent
814e795979
commit
2711ea6f04
|
@ -1776,6 +1776,10 @@ define([
|
|||
hide();
|
||||
$button.focus();
|
||||
}
|
||||
if(e.which === 9) { // Tab
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
});
|
||||
$container.keypress(function (e) {
|
||||
window.clearTimeout(to);
|
||||
|
|
Loading…
Reference in New Issue