mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 21:28:27 +02:00
Make Controller shortcuts settings controller-friendly
This commit is contained in:
@@ -54,7 +54,8 @@ export class BxSelectElement {
|
||||
}
|
||||
|
||||
const getOptionAtIndex = (index: number): HTMLOptionElement | undefined => {
|
||||
return $select.querySelector(`option:nth-of-type(${visibleIndex + 1})`) as HTMLOptionElement;
|
||||
const options = Array.from($select.querySelectorAll('option'));
|
||||
return options[index];
|
||||
}
|
||||
|
||||
const render = () => {
|
||||
|
Reference in New Issue
Block a user