aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/keycodes.js
diff options
context:
space:
mode:
authorNick Coutsos <[email protected]>2022-04-28 23:52:20 -0400
committerNick Coutsos <[email protected]>2022-04-28 23:52:20 -0400
commit94efab0e1ac5cb65a85f47b376b111cf00989052 (patch)
treeef2cf0e76db3f0ff5108fb603cf3f87644e65806 /application/keycodes.js
parent7f6b1db5f9cc50eb3b30bfea95fe677641340723 (diff)
parent260f0c6f3dc841cbe5fbf290d2b802e8acdb20b6 (diff)
downloadkeymap-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.js4
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, {