feat(uxassist): show new navigation shortcut hint

This commit is contained in:
soarqin committed 2026-09-13 19:28:24 +08:00
1 parent 5ae85eb031
commit 3f8e04f4a0
5 files changed
+48 -6

No files matched your search

+13
View File
@@ -30,6 +30,19 @@ public static class KeyBindings
return new CombineKey((int)shortcut.MainKey, mod, ECombineKeyAction.OnceClick, false);
}
public static string GetKeyBindingText(PressKeyBind keyBind)
{
var defaultBind = keyBind.defaultBind;
var key = defaultBind.key;
if (VFInput.override_keys != null && (uint)defaultBind.id < (uint)VFInput.override_keys.Length)
{
var overrideKey = VFInput.override_keys[defaultBind.id];
if (!overrideKey.IsNull()) key = overrideKey;
}
return key.ToString();
}
public static bool IsKeyPressing(this PressKeyBind keyBind)
{
var defBind = keyBind.defaultBind;