You've already forked pages
forked from didirus/AstralRinth
feat: i18n switcher in app-frontend (#4990)
* feat: app i18n stuff * feat: locale switching on load * feat: db migration * feat: polish + fade indicator impl onto TabbedModal * fix: prepr checks * fix: remove staging lock for language switching * fix: lint
This commit is contained in:
8
packages/ui/src/utils/events.ts
Normal file
8
packages/ui/src/utils/events.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Checks if any modifier key (Ctrl, Alt, Meta, or Shift) is held down during an event.
|
||||
*/
|
||||
export function isModifierKeyDown(
|
||||
e: Pick<KeyboardEvent, 'ctrlKey' | 'altKey' | 'metaKey' | 'shiftKey'>,
|
||||
): boolean {
|
||||
return e.ctrlKey || e.altKey || e.metaKey || e.shiftKey
|
||||
}
|
||||
Reference in New Issue
Block a user