MCPcopy Create free account
hub / github.com/pingdotgg/t3code / shouldShowThreadJumpHintsForModifiers

Function shouldShowThreadJumpHintsForModifiers

apps/web/src/keybindings.ts:293–309  ·  view source on GitHub ↗
(
  modifiers: ShortcutModifierStateLike,
  keybindings: ResolvedKeybindingsConfig,
  options?: ShortcutMatchOptions,
)

Source from the content-addressed store, hash-verified

291}
292
293export function shouldShowThreadJumpHintsForModifiers(
294 modifiers: ShortcutModifierStateLike,
295 keybindings: ResolvedKeybindingsConfig,
296 options?: ShortcutMatchOptions,
297): boolean {
298 const platform = resolvePlatform(options);
299
300 for (const command of THREAD_JUMP_KEYBINDING_COMMANDS) {
301 const shortcut = findEffectiveShortcutForCommand(keybindings, command, options);
302 if (!shortcut) continue;
303 if (matchesShortcutModifiers(modifiers, shortcut, platform)) {
304 return true;
305 }
306 }
307
308 return false;
309}
310
311export function modelPickerJumpCommandForIndex(
312 index: number,

Callers 2

SidebarFunction · 0.90

Calls 3

resolvePlatformFunction · 0.85
matchesShortcutModifiersFunction · 0.85

Tested by

no test coverage detected