Merge pull request #2416 from thelounge/xpaw/out-of-focus-touch
Allow out-of-focus typing on touch devices
This commit is contained in:
commit
0cd6366b5c
@ -247,7 +247,6 @@ const ignoredKeys = {
|
|||||||
224: true, // Meta
|
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 if target isn't body (e.g. focused into input)
|
||||||
// Ignore any key that uses alt modifier
|
// Ignore any key that uses alt modifier
|
||||||
@ -270,4 +269,3 @@ if (!("ontouchstart" in window || navigator.maxTouchPoints > 0)) {
|
|||||||
|
|
||||||
input.trigger("focus");
|
input.trigger("focus");
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user