diff options
author | Nick Coutsos <[email protected]> | 2022-04-28 23:52:20 -0400 |
---|---|---|
committer | Nick Coutsos <[email protected]> | 2022-04-28 23:52:20 -0400 |
commit | 94efab0e1ac5cb65a85f47b376b111cf00989052 (patch) | |
tree | ef2cf0e76db3f0ff5108fb603cf3f87644e65806 /application/keycodes.js | |
parent | 7f6b1db5f9cc50eb3b30bfea95fe677641340723 (diff) | |
parent | 260f0c6f3dc841cbe5fbf290d2b802e8acdb20b6 (diff) | |
download | keymap-editor-94efab0e1ac5cb65a85f47b376b111cf00989052.tar.gz keymap-editor-94efab0e1ac5cb65a85f47b376b111cf00989052.zip |
Merge branch 'main' into react-app
Diffstat (limited to 'application/keycodes.js')
-rw-r--r-- | application/keycodes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/keycodes.js b/application/keycodes.js index 743bc76..7a65f5b 100644 --- a/application/keycodes.js +++ b/application/keycodes.js @@ -18,10 +18,10 @@ function normalizeZmkKeycodes (keycodes) { const fnPattern = /^(.+?)\((code)\)$/ return keycodes.reduce((keycodes, keycode) => { - const { description, context, symbol } = keycode + const { description, context, symbol, faIcon } = keycode const aliases = keycode.names.filter(name => !name.match(fnPattern)) const fnCode = keycode.names.map(name => name.match(fnPattern)).filter(v => !!v)[0] - const base = { aliases, description, context, symbol: symbol || shortestAlias(aliases), params: [] } + const base = { aliases, description, context, faIcon, symbol: symbol || shortestAlias(aliases), params: [] } for (let code of aliases) { keycodes.push(Object.assign({}, base, { |