From 5bfb9bebd764597230e4961a3cd60dd4d0ab633b Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Sat, 3 May 2025 12:49:32 +0300 Subject: [PATCH] f3 hint --- src/react/MobileTopButtons.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 = {