isSameHotkey
Checks whether two hotkeys are the same key combination, whatever order their modifiers are listed in.
Import:
import { isSameHotkey } from '@mnaoumov/obsidian-lib/hotkey';Signature:
function isSameHotkey(hotkey1: Hotkey, hotkey2: Hotkey): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
hotkey1 |
Hotkey | The first hotkey. |
hotkey2 |
Hotkey | The second hotkey. |
Returns: boolean — Whether they are equal.