diff --git a/src/react/MobileTopButtons.tsx b/src/react/MobileTopButtons.tsx index 4d18f817..a2f1a1da 100644 --- a/src/react/MobileTopButtons.tsx +++ b/src/react/MobileTopButtons.tsx @@ -21,10 +21,14 @@ export default () => { }, []) const onLongPress = async () => { - const select = await showOptionsModal('', f3Keybinds.filter(f3Keybind => f3Keybind.mobileTitle && (f3Keybind.enabled?.() ?? true)).map(f3Keybind => f3Keybind.mobileTitle)) + const select = await showOptionsModal('', f3Keybinds.filter(f3Keybind => { + return f3Keybind.mobileTitle && (f3Keybind.enabled?.() ?? true) + }).map(f3Keybind => { + return `${f3Keybind.mobileTitle}${f3Keybind.key ? ` (F3+${f3Keybind.key})` : ''}` + })) if (!select) return const f3Keybind = f3Keybinds.find(f3Keybind => f3Keybind.mobileTitle === select) - if (f3Keybind) f3Keybind.action() + if (f3Keybind) void f3Keybind.action() } const defaultOptions = {