Merge pull request #147 from mrnugget/mrn/ctrl_left_bracket

Handle non-printable characters when ctrl is pressed
This commit is contained in:
Mitchell Hashimoto
2023-05-30 21:36:36 -07:00
committed by GitHub

View File

@ -1148,6 +1148,9 @@ pub fn keyCallback(
// we convert to a non-printable.
if (mods_int == ctrl_only) {
const val: u8 = switch (key) {
.left_bracket => 0x1B,
.backslash => 0x1C,
.right_bracket => 0x1D,
.a => 0x01,
.b => 0x02,
.c => 0x03,