mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Add nmaps -> KeyMap
This commit is contained in:
parent
35bcde6627
commit
095df8ea03
1 changed files with 5 additions and 0 deletions
|
@ -286,6 +286,11 @@ export function mapstrMapToKeyMap(mapstrMap: Map<string, MapTarget>): KeyMap {
|
|||
return newKeyMap
|
||||
}
|
||||
|
||||
export function mapstrObjToKeyMap(mapstrObj): KeyMap {
|
||||
const mapstrMap = new Map(Object.entries(mapstrObj))
|
||||
return mapstrMapToKeyMap(mapstrMap)
|
||||
}
|
||||
|
||||
// }}}
|
||||
|
||||
// {{{ Utility functions for dealing with KeyboardEvents
|
||||
|
|
Loading…
Add table
Reference in a new issue