Allow out-of-focus typing on touch devices
This commit is contained in:
parent
5aafb38624
commit
55c1293b4c
@ -247,8 +247,7 @@ const ignoredKeys = {
|
||||
224: true, // Meta
|
||||
};
|
||||
|
||||
if (!("ontouchstart" in window || navigator.maxTouchPoints > 0)) {
|
||||
$(document.body).on("keydown", (e) => {
|
||||
$(document.body).on("keydown", (e) => {
|
||||
// Ignore if target isn't body (e.g. focused into input)
|
||||
// Ignore any key that uses alt modifier
|
||||
// Ignore keys defined above
|
||||
@ -269,5 +268,4 @@ if (!("ontouchstart" in window || navigator.maxTouchPoints > 0)) {
|
||||
}
|
||||
|
||||
input.trigger("focus");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user