mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-22 18:02:42 +00:00
feat: compound chording actions
This commit is contained in:
@@ -90,6 +90,10 @@ const config: IconsConfig = {
|
|||||||
"timer",
|
"timer",
|
||||||
"target",
|
"target",
|
||||||
"download",
|
"download",
|
||||||
|
"download_2",
|
||||||
|
"upload_2",
|
||||||
|
"stat_minus_2",
|
||||||
|
"stat_2",
|
||||||
],
|
],
|
||||||
codePoints: {
|
codePoints: {
|
||||||
speed: "e9e4",
|
speed: "e9e4",
|
||||||
@@ -104,6 +108,10 @@ const config: IconsConfig = {
|
|||||||
upload_file: "e9fc",
|
upload_file: "e9fc",
|
||||||
no_sound: "e710",
|
no_sound: "e710",
|
||||||
sentiment_extremely_dissatisfied: "f194",
|
sentiment_extremely_dissatisfied: "f194",
|
||||||
|
download_2: "f523",
|
||||||
|
upload_2: "ff52",
|
||||||
|
stat_minus_2: "e69c",
|
||||||
|
stat_2: "e699",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
20
package-lock.json
generated
20
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "charachorder-device-manager",
|
"name": "charachorder-device-manager",
|
||||||
"version": "0.6.5",
|
"version": "0.7.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "charachorder-device-manager",
|
"name": "charachorder-device-manager",
|
||||||
"version": "0.6.5",
|
"version": "0.7.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -15,8 +15,8 @@
|
|||||||
"@codemirror/lang-javascript": "^6.2.1",
|
"@codemirror/lang-javascript": "^6.2.1",
|
||||||
"@codemirror/language": "^6.9.0",
|
"@codemirror/language": "^6.9.0",
|
||||||
"@codemirror/state": "^6.2.1",
|
"@codemirror/state": "^6.2.1",
|
||||||
"@fontsource-variable/material-symbols-rounded": "^5.0.11",
|
"@fontsource-variable/material-symbols-rounded": "^5.0.16",
|
||||||
"@fontsource-variable/noto-sans-mono": "^5.0.12",
|
"@fontsource-variable/noto-sans-mono": "^5.0.17",
|
||||||
"@material/material-color-utilities": "^0.2.7",
|
"@material/material-color-utilities": "^0.2.7",
|
||||||
"@modyfi/vite-plugin-yaml": "^1.0.4",
|
"@modyfi/vite-plugin-yaml": "^1.0.4",
|
||||||
"@sveltejs/adapter-static": "^2.0.3",
|
"@sveltejs/adapter-static": "^2.0.3",
|
||||||
@@ -2417,15 +2417,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@fontsource-variable/material-symbols-rounded": {
|
"node_modules/@fontsource-variable/material-symbols-rounded": {
|
||||||
"version": "5.0.11",
|
"version": "5.0.16",
|
||||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/material-symbols-rounded/-/material-symbols-rounded-5.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/@fontsource-variable/material-symbols-rounded/-/material-symbols-rounded-5.0.16.tgz",
|
||||||
"integrity": "sha512-WelrZz3MJErCcMPFPJBWS8mL2dY80lnS/eKYisiiUp9dW2rsU/yULQ/ihf4fBtPc5v9PA/1Uh7gW/X/Bll6CuQ==",
|
"integrity": "sha512-HtH/bpUBj/9irIouf2uPaB+qf6HKpR0JFxSDK2HGaqOLsJqIxs4RJB2Y9IXASwTN50FBd1g8KZ6O5vNYEsU94A==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@fontsource-variable/noto-sans-mono": {
|
"node_modules/@fontsource-variable/noto-sans-mono": {
|
||||||
"version": "5.0.12",
|
"version": "5.0.17",
|
||||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/noto-sans-mono/-/noto-sans-mono-5.0.12.tgz",
|
"resolved": "https://registry.npmjs.org/@fontsource-variable/noto-sans-mono/-/noto-sans-mono-5.0.17.tgz",
|
||||||
"integrity": "sha512-OMDL6elwLMSEOdmWyRkA4ETGLyXv84LAtFPoZFj+N1pUy0L1om9Qz5f7DzwxdRA0HbciuJKRBa7XQGkMLjQZUg==",
|
"integrity": "sha512-EpK1L28ZahAschdLmCCjHVoYNAystRlx/eduGKt9F6m4zln7x+CleAVWwqgAXOp/GDuTgVWwr1aPqcRFzwjQbg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@isaacs/cliui": {
|
"node_modules/@isaacs/cliui": {
|
||||||
|
|||||||
@@ -35,8 +35,8 @@
|
|||||||
"@codemirror/lang-javascript": "^6.2.1",
|
"@codemirror/lang-javascript": "^6.2.1",
|
||||||
"@codemirror/language": "^6.9.0",
|
"@codemirror/language": "^6.9.0",
|
||||||
"@codemirror/state": "^6.2.1",
|
"@codemirror/state": "^6.2.1",
|
||||||
"@fontsource-variable/material-symbols-rounded": "^5.0.11",
|
"@fontsource-variable/material-symbols-rounded": "^5.0.16",
|
||||||
"@fontsource-variable/noto-sans-mono": "^5.0.12",
|
"@fontsource-variable/noto-sans-mono": "^5.0.17",
|
||||||
"@material/material-color-utilities": "^0.2.7",
|
"@material/material-color-utilities": "^0.2.7",
|
||||||
"@modyfi/vite-plugin-yaml": "^1.0.4",
|
"@modyfi/vite-plugin-yaml": "^1.0.4",
|
||||||
"@sveltejs/adapter-static": "^2.0.3",
|
"@sveltejs/adapter-static": "^2.0.3",
|
||||||
|
|||||||
@@ -51,3 +51,11 @@ actions:
|
|||||||
id: "RELEASE_KEYS"
|
id: "RELEASE_KEYS"
|
||||||
title: Release all keys, but not keyboard modifiers
|
title: Release all keys, but not keyboard modifiers
|
||||||
icon: text_rotate_up
|
icon: text_rotate_up
|
||||||
|
523:
|
||||||
|
id: "PRESS_NEXT"
|
||||||
|
title: "Press and do not release the next key/action"
|
||||||
|
icon: download
|
||||||
|
524:
|
||||||
|
id: "RELEASE_NEXT"
|
||||||
|
title: "Release the next key/action in the sequence"
|
||||||
|
icon: upload
|
||||||
|
|||||||
@@ -62,15 +62,13 @@ for (const icon of icons) {
|
|||||||
.flatMap(it => [...it])
|
.flatMap(it => [...it])
|
||||||
.map(it => it.codePointAt(0).toString(16))
|
.map(it => it.codePointAt(0).toString(16))
|
||||||
|
|
||||||
if (codePoints.length === 0) {
|
const codePoint = config.codePoints[icon]
|
||||||
const codePoint = config.codePoints[icon]
|
if (codePoint) {
|
||||||
if (config.codePoints?.[icon]) {
|
glyphs.push(codePoint)
|
||||||
glyphs.push(config.codePoints[icon])
|
} else if (codePoints.length === 0) {
|
||||||
} else {
|
console.log()
|
||||||
console.log()
|
console.error(`${icon} code point could not be determined. Add it to config.codePoints.`)
|
||||||
console.error(`${icon} code point could not be determined. Add it to config.codePoints.`)
|
process.exit(-1)
|
||||||
process.exit(-1)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
glyphs.push(...codePoints)
|
glyphs.push(...codePoints)
|
||||||
|
|||||||
Reference in New Issue
Block a user