routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Centralized key alias mapping for consistent key normalization across the hotkey system.
|
||||
*
|
||||
* This maps various user-friendly aliases to canonical key names that match
|
||||
* KeyboardEvent.key values (in lowercase) where possible.
|
||||
*/
|
||||
export declare const keyAliasMap: Record<string, string>;
|
||||
/**
|
||||
* Normalizes a key string to its canonical form using the alias map.
|
||||
*
|
||||
* @param key - The key string to normalize
|
||||
* @returns The canonical key name in lowercase
|
||||
*/
|
||||
export declare function normalizeKey(key: string): string;
|
||||
Reference in New Issue
Block a user