mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Merge pull request #147 from mrnugget/mrn/ctrl_left_bracket
Handle non-printable characters when ctrl is pressed
This commit is contained in:
@ -1148,6 +1148,9 @@ pub fn keyCallback(
|
|||||||
// we convert to a non-printable.
|
// we convert to a non-printable.
|
||||||
if (mods_int == ctrl_only) {
|
if (mods_int == ctrl_only) {
|
||||||
const val: u8 = switch (key) {
|
const val: u8 = switch (key) {
|
||||||
|
.left_bracket => 0x1B,
|
||||||
|
.backslash => 0x1C,
|
||||||
|
.right_bracket => 0x1D,
|
||||||
.a => 0x01,
|
.a => 0x01,
|
||||||
.b => 0x02,
|
.b => 0x02,
|
||||||
.c => 0x03,
|
.c => 0x03,
|
||||||
|
Reference in New Issue
Block a user