mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Dispatch "TvRemoteBack" in backButtonPressed()
This commit is contained in:
parent
8b56ae218d
commit
344b6bb2c9
@ -128,6 +128,18 @@ export const BxExposed = {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const dict = {
|
||||||
|
bubbles: true,
|
||||||
|
cancelable: true,
|
||||||
|
key: 'XF86Back',
|
||||||
|
code: 'XF86Back',
|
||||||
|
keyCode: 4,
|
||||||
|
which: 4,
|
||||||
|
};
|
||||||
|
|
||||||
|
document.body.dispatchEvent(new KeyboardEvent('keydown', dict));
|
||||||
|
document.body.dispatchEvent(new KeyboardEvent('keyup', dict));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user