mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-27 01:41:43 +02:00
Dispatch "TvRemoteBack" in backButtonPressed()
This commit is contained in:
@ -128,6 +128,18 @@ export const BxExposed = {
|
||||
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;
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user