Skip to content

Commit

Permalink
Improve some keycode picker labels
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Dec 21, 2024
1 parent ae0732a commit a257ce1
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 61 deletions.
16 changes: 8 additions & 8 deletions src/store/modules/keycodes/ansi.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default [
{ name: 'l', code: 'KC_L', keys: 'l' },
{ name: ':\n;', code: 'KC_SCLN', keys: ';' },
{ name: '"\n\'', code: 'KC_QUOT', keys: "'" },
{ name: 'Enter', code: 'KC_ENT', keys: 'enter', width: 2250 },
{ name: 'Enter\n↵', code: 'KC_ENT', keys: 'enter', width: 2250 },
{ width: 3500 },
{ name: '4', code: 'KC_P4', keys: 'num_4' },
{ name: '5', code: 'KC_P5', keys: 'num_5' },
Expand All @@ -106,7 +106,7 @@ export default [
{ name: '?\n/', code: 'KC_SLSH', keys: '/' },
{ name: 'Right Shift', code: 'KC_RSFT', width: 2750 },
{ width: 1250 },
{ name: 'Up', code: 'KC_UP', keys: 'up' },
{ name: '', code: 'KC_UP', keys: 'up' },
{ width: 1250 },
{ name: '1', code: 'KC_P1', keys: 'num_1' },
{ name: '2', code: 'KC_P2', keys: 'num_2' },
Expand All @@ -115,17 +115,17 @@ export default [
{ width: 0 },

{ name: 'Left Ctrl', code: 'KC_LCTL', keys: 'ctrl', width: 1250 },
{ name: 'Left OS', code: 'KC_LGUI', keys: 'cmd', width: 1250 },
{ name: 'Left GUI', code: 'KC_LGUI', keys: 'cmd', width: 1250 },
{ name: 'Left Alt', code: 'KC_LALT', keys: 'alt', width: 1250 },
{ name: 'Space', code: 'KC_SPC', keys: 'space', width: 6250 },
{ name: 'Right Alt', code: 'KC_RALT', width: 1250 },
{ name: 'Right OS', code: 'KC_RGUI', width: 1250 },
{ name: 'Menu', code: 'KC_APP', title: 'Context Menu', width: 1250 },
{ name: 'Right GUI', code: 'KC_RGUI', width: 1250 },
{ name: '', code: 'KC_APP', title: 'Context Menu', width: 1250 },
{ name: 'Right Ctrl', code: 'KC_RCTL', width: 1250 },
{ width: 250 },
{ name: 'Left', code: 'KC_LEFT', keys: 'left' },
{ name: 'Down', code: 'KC_DOWN', keys: 'down' },
{ name: 'Right', code: 'KC_RGHT', keys: 'right' },
{ name: '', code: 'KC_LEFT', keys: 'left' },
{ name: '', code: 'KC_DOWN', keys: 'down' },
{ name: '', code: 'KC_RGHT', keys: 'right' },
{ width: 250 },
{ name: '0', code: 'KC_P0', keys: 'num_0', width: 2000 },
{ name: '.', code: 'KC_PDOT', keys: 'num_decimal' },
Expand Down
26 changes: 13 additions & 13 deletions src/store/modules/keycodes/app-media-mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,21 @@ export default [

{ label: 'Multimedia Keys', width: 'label' },

{ name: 'Previous', code: 'KC_MPRV', title: 'Previous Track' },
{ name: 'Prev', code: 'KC_MPRV', title: 'Previous Track' },
{ name: 'Next', code: 'KC_MNXT', title: 'Next Track' },
{ name: 'Mute', code: 'KC_MUTE', title: 'Mute Audio' },
{ name: 'Vol -', code: 'KC_VOLD', title: 'Volume Down' },
{ name: 'Vol +', code: 'KC_VOLU', title: 'Volume Up' },
{ name: 'Vol ', code: 'KC_VOLD', title: 'Volume Down' },
{ name: 'Vol ', code: 'KC_VOLU', title: 'Volume Up' },
{ name: 'Media Stop', code: 'KC_MSTP', title: 'Media Stop' },
{ name: 'Play', code: 'KC_MPLY', title: 'Play/Pause' },
{ width: 250 },
{
name: 'Prev Track',
name: 'Rewind',
code: 'KC_MRWD',
title: 'Previous Track / Rewind (macOS)'
},
{
name: 'Next Track',
name: 'FFwd',
code: 'KC_MFFD',
title: 'Next Track / Fast Forward (macOS)'
},
Expand All @@ -125,21 +125,21 @@ export default [

{ label: 'Mouse Keys', width: 'label' },

{ name: 'Mouse Up', code: 'KC_MS_U', title: 'Mouse Cursor Up' },
{ name: 'Mouse Down', code: 'KC_MS_D', title: 'Mouse Cursor Down' },
{ name: 'Mouse Left', code: 'KC_MS_L', title: 'Mouse Cursor Left' },
{ name: 'Mouse Right', code: 'KC_MS_R', title: 'Mouse Cursor Right' },
{ name: 'Mouse ', code: 'KC_MS_U', title: 'Mouse Cursor Up' },
{ name: 'Mouse ', code: 'KC_MS_D', title: 'Mouse Cursor Down' },
{ name: 'Mouse ', code: 'KC_MS_L', title: 'Mouse Cursor Left' },
{ name: 'Mouse ', code: 'KC_MS_R', title: 'Mouse Cursor Right' },
{ width: 250 },
{ name: 'Mouse 1', code: 'KC_BTN1', title: 'Mouse Button 1' },
{ name: 'Mouse 2', code: 'KC_BTN2', title: 'Mouse Button 2' },
{ name: 'Mouse 3', code: 'KC_BTN3', title: 'Mouse Button 3' },
{ name: 'Mouse 4', code: 'KC_BTN4', title: 'Mouse Button 4' },
{ name: 'Mouse 5', code: 'KC_BTN5', title: 'Mouse Button 5' },
{ width: 250 },
{ name: 'Mouse Wheel Up', code: 'KC_WH_U', title: 'Mouse Wheel Up' },
{ name: 'Mouse Wheel Down', code: 'KC_WH_D', title: 'Mouse Wheel Down' },
{ name: 'Mouse Wheel Left', code: 'KC_WH_L', title: 'Mouse Wheel Left' },
{ name: 'Mouse Wheel Right', code: 'KC_WH_R', title: 'Mouse Wheel Right' },
{ name: 'Mouse Wheel ', code: 'KC_WH_U', title: 'Mouse Wheel Up' },
{ name: 'Mouse Wheel ', code: 'KC_WH_D', title: 'Mouse Wheel Down' },
{ name: 'Mouse Wheel ', code: 'KC_WH_L', title: 'Mouse Wheel Left' },
{ name: 'Mouse Wheel ', code: 'KC_WH_R', title: 'Mouse Wheel Right' },
{ width: 250 },
{
name: 'Mouse Accel 0',
Expand Down
16 changes: 8 additions & 8 deletions src/store/modules/keycodes/iso-jis.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default [
{ name: '~\n#', code: 'KC_NUHS', title: 'Non-US # and ~' },
{ width: 1250 },
{
name: 'Enter',
name: 'Enter\n↵',
code: 'KC_ENT',
keys: 'enter',
classes: 'isoenter',
Expand Down Expand Up @@ -117,7 +117,7 @@ export default [
{ name: '_\n\\', code: 'KC_INT1', title: 'JIS \\ and _' },
{ name: 'Right Shift', code: 'KC_RSFT', width: 1750 },
{ width: 1250 },
{ name: 'Up', code: 'KC_UP', keys: 'up' },
{ name: '', code: 'KC_UP', keys: 'up' },
{ width: 1250 },
{ name: '1', code: 'KC_P1', keys: 'num_1' },
{ name: '2', code: 'KC_P2', keys: 'num_2' },
Expand All @@ -126,7 +126,7 @@ export default [
{ width: 0 },

{ name: 'Left Ctrl', code: 'KC_LCTL', keys: 'ctrl', width: 1250 },
{ name: 'Left OS', code: 'KC_LGUI', keys: 'cmd', width: 1250 },
{ name: 'Left GUI', code: 'KC_LGUI', keys: 'cmd', width: 1250 },
{ name: 'Left Alt', code: 'KC_LALT', keys: 'alt', width: 1250 },
{ name: '無変換', code: 'KC_INT5', title: 'JIS Muhenkan', width: 1250 },
{ name: 'Space', code: 'KC_SPC', keys: 'space', width: 3000 },
Expand All @@ -139,13 +139,13 @@ export default [
width: 1250
},
{ name: 'Alt Gr', code: 'KC_RALT' },
{ name: 'Right OS', code: 'KC_RGUI', width: 1250 },
{ name: 'Menu', code: 'KC_APP', title: 'Context Menu' },
{ name: 'Right GUI', code: 'KC_RGUI', width: 1250 },
{ name: '', code: 'KC_APP', title: 'Context Menu' },
{ name: 'Right Ctrl', code: 'KC_RCTL', width: 1250 },
{ width: 250 },
{ name: 'Left', code: 'KC_LEFT', keys: 'left' },
{ name: 'Down', code: 'KC_DOWN', keys: 'down' },
{ name: 'Right', code: 'KC_RGHT', keys: 'right' },
{ name: '', code: 'KC_LEFT', keys: 'left' },
{ name: '', code: 'KC_DOWN', keys: 'down' },
{ name: '', code: 'KC_RGHT', keys: 'right' },
{ width: 250 },
{ name: '0', code: 'KC_P0', keys: 'num_0', width: 2000 },
{ name: '.', code: 'KC_PDOT', keys: 'num_decimal' },
Expand Down
64 changes: 32 additions & 32 deletions src/store/modules/keycodes/kb-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@ export default [
{ label: 'Keyboard settings (persistent)', width: 'label' },

{
name: 'Swap LCtl/Caps',
name: 'Swap LCtlCaps',
code: 'CL_SWAP',
title: 'Swap Left Control and Caps Lock',
width: 1500
},
{
name: 'Caps>LCtl',
name: 'Caps=LCtl',
code: 'CL_CTRL',
title: 'Treat Caps Lock as Left Control',
width: 1500
},
{
name: 'Swap LCtl/LGUI',
name: 'Swap LCtlLGUI',
code: 'CG_LSWP',
title: 'Swap Left Control and GUI',
width: 1500
},
{
name: 'Swap RCtl/RGUI',
name: 'Swap RCtlRGUI',
code: 'CG_RSWP',
title: 'Swap Right Control and GUI',
width: 1500
},
{
name: 'Swap LAlt/LGUI',
name: 'Swap LAltLGUI',
code: 'AG_LSWP',
title: 'Swap Left Alt and Left GUI',
width: 1500
},
{
name: 'Swap RAlt/RGUI',
name: 'Swap RAltRGUI',
code: 'AG_RSWP',
title: 'Swap Right Alt and Right GUI',
width: 1500
Expand All @@ -46,13 +46,13 @@ export default [
width: 1500
},
{
name: 'Swap ` with Esc',
name: 'Swap `Esc',
code: 'GE_SWAP',
title: 'Swap ` and Escape',
width: 1500
},
{
name: 'Swap \\ with Bksp',
name: 'Swap \\⇄Bspc',
code: 'BS_SWAP',
title: 'Swap Backslash and Backspace',
width: 1500
Expand All @@ -64,13 +64,13 @@ export default [
width: 1500
},
{
name: 'Swap Alt/GUI',
name: 'Swap AltGUI',
code: 'AG_SWAP',
title: 'Swap Alt and GUI on both sides (for macOS)',
width: 1500
},
{
name: 'Swap Ctl/GUI',
name: 'Swap CtlGUI',
code: 'CG_SWAP',
title: 'Swap Ctrl and GUI on both sides (for macOS)',
width: 1500
Expand All @@ -79,37 +79,37 @@ export default [
width: 0
},
{
name: 'Rev LCtl/Caps',
name: 'Unswap LCtlCaps',
code: 'CL_NORM',
title: 'Unswap Left Control and Caps Lock',
width: 1500
},
{
name: 'Rev Caps>LCtl',
name: 'CapsLCtl',
code: 'CL_CAPS',
title: 'Stop treating Caps Lock as Left Control',
width: 1500
},
{
name: 'Unswap LCtl/LGUI',
name: 'Unswap LCtlLGUI',
code: 'CG_LNRM',
title: 'Unswap Left Control and GUI',
width: 1500
},
{
name: 'Unswap RCtl/RGUI',
name: 'Unswap RCtlRGUI',
code: 'CG_RNRM',
title: 'Unswap Right Control and GUI',
width: 1500
},
{
name: 'Rev LAlt/LGUI',
name: 'Unswap LAltLGUI',
code: 'AG_LNRM',
title: 'Unswap Left Alt and Left GUI',
width: 1500
},
{
name: 'Rev RAlt/RGUI',
name: 'Unswap RAltRGUI',
code: 'AG_RNRM',
title: 'Unswap Right Alt and Right GUI',
width: 1500
Expand All @@ -121,13 +121,13 @@ export default [
width: 1500
},
{
name: 'Rev ` with Esc',
name: 'Unswap `⇄Esc',
code: 'GE_NORM',
title: 'Unswap ` and Escape',
width: 1500
},
{
name: 'Rev \\ with Bksp',
name: 'Unswap \\⇄Bspc',
code: 'BS_NORM',
title: 'Unswap Backslash and Backspace',
width: 1500
Expand All @@ -139,13 +139,13 @@ export default [
width: 1500
},
{
name: 'Rev Alt/GUI',
name: 'Unswap AltGUI',
code: 'AG_NORM',
title: 'Unswap Alt and GUI on both sides (for macOS)',
width: 1500
},
{
name: 'Unswap Ctl/GUI',
name: 'Unswap CtlGUI',
code: 'CG_NORM',
title: 'Unswap Ctrl and GUI on both sides',
width: 1500
Expand Down Expand Up @@ -183,7 +183,7 @@ export default [
title: 'Set the backlight to max brightness'
},
{
name: 'BL +',
name: 'BL ',
code: 'BL_UP',
title: 'Increase the backlight level'
},
Expand All @@ -195,7 +195,7 @@ export default [
title: 'Turn the backlight off'
},
{
name: 'BL -',
name: 'BL ',
code: 'BL_DOWN',
title: 'Decrease the backlight level'
},
Expand All @@ -207,11 +207,11 @@ export default [
code: 'RGB_TOG',
title: 'Toggle RGB lighting on or off'
},
{ name: 'RGB Mode +', code: 'RGB_MOD', title: 'Next RGB mode' },
{ name: 'Hue +', code: 'RGB_HUI', title: 'Increase hue' },
{ name: 'Sat +', code: 'RGB_SAI', title: 'Increase saturation' },
{ name: 'Bright +', code: 'RGB_VAI', title: 'Increase value' },
{ name: 'Effect +', code: 'RGB_SPI', title: 'Increase RGB effect speed' },
{ name: 'RGB Mode ', code: 'RGB_MOD', title: 'Next RGB mode' },
{ name: 'Hue ', code: 'RGB_HUI', title: 'Increase hue' },
{ name: 'Sat ', code: 'RGB_SAI', title: 'Increase saturation' },
{ name: 'Bright ', code: 'RGB_VAI', title: 'Increase value' },
{ name: 'Speed ▴', code: 'RGB_SPI', title: 'Increase RGB effect speed' },
{ name: 'RGB Mode P', code: 'RGB_M_P', title: 'RGB Mode: Plain' },
{ name: 'RGB Mode B', code: 'RGB_M_B', title: 'RGB Mode: Breathe' },
{ name: 'RGB Mode R', code: 'RGB_M_R', title: 'RGB Mode: Rainbow' },
Expand All @@ -223,9 +223,9 @@ export default [
{ name: 'RGB Mode T', code: 'RGB_M_T', title: 'RGB Mode: Test' },
{ width: 0 },
{ width: 1000 },
{ name: 'RGB Mode -', code: 'RGB_RMOD', title: 'Previous RGB mode' },
{ name: 'Hue -', code: 'RGB_HUD', title: 'Decrease hue' },
{ name: 'Sat -', code: 'RGB_SAD', title: 'Decrease saturation' },
{ name: 'Bright -', code: 'RGB_VAD', title: 'Decrease value' },
{ name: 'Effect -', code: 'RGB_SPD', title: 'Decrease RGB effect speed' }
{ name: 'RGB Mode ', code: 'RGB_RMOD', title: 'Previous RGB mode' },
{ name: 'Hue ', code: 'RGB_HUD', title: 'Decrease hue' },
{ name: 'Sat ', code: 'RGB_SAD', title: 'Decrease saturation' },
{ name: 'Bright ', code: 'RGB_VAD', title: 'Decrease value' },
{ name: 'Speed ▾', code: 'RGB_SPD', title: 'Decrease RGB effect speed' }
];

0 comments on commit a257ce1

Please sign in to comment.