This commit is contained in:
Mike Kendall 2024-01-04 22:11:39 -08:00 committed by GitHub
commit 0b524e36a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -6,10 +6,10 @@
| keyboard input | Trigger |
| :------------: | :--------------------------------------------------------------------------: |
| Left shit | Shift |
| Right shit | Toggle case locking |
| Shift | Shift |
| alt+Right shift| Toggle case locking |
| sym | Enter numbers and characters (only triggered once, not locked) |
| alt+left shit | ctrl+shift(Switch the input method) |
| alt+left shift | ctrl+shift(Switch the input method) |
| alt+b | Change keyboard backlight status |
| ... | More custom features can be modified source code implementation, or feedback |

View File

@ -187,7 +187,7 @@ void loop()
clear_sccreen();
}
if (keyPressed(2, 3)) { //Right Shit ,Toggle case locking
if (keyActive(0, 4) && keyPressed(2, 3)) { //Alt + Right Shit, Toggle case locking
case_locking = !case_locking;
}
@ -337,7 +337,7 @@ void printMatrix()
return;
}
// keys 1,6 and 2,3 are Shift keys, so we want to upper case
if (case_locking || keyActive(1, 6)) {
if (case_locking || keyActive(1, 6) || keyActive(2, 3)) { // Left or right shift
toPrint.toUpperCase();
}