Skip to content

Commit

Permalink
Let unix Squeak VM generate ASCII control characters like it always did
Browse files Browse the repository at this point in the history
Note: I have reverted my deeper changes that did always used the `KeySym *symbolic`as event `charCode`.
This will be for another branch and will require coordinated cross platform support and image changes.
This makes Nuke-MacRoman branch a good candidate for fixing #456
...at least for ctrl+a to ctrl+z
  • Loading branch information
nicolas-cellier-aka-nice committed Dec 26, 2019
1 parent d0e455d commit 929bf65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platforms/unix/vm-display-X11/sqUnixX11.c
Expand Up @@ -1955,6 +1955,7 @@ static int x2sqKeyPlain(XKeyEvent *xevt, KeySym *symbolic)
return -1; /* unknown key */
if ((charCode == 127) && mapDelBs)
charCode= 8;
#ifdef PharoVM
if (charCode >= 1 && charCode <= 26) {
/* check for Ctrl-letter that gets translated into charCode 1-26 instead of letters a-z */
KeySym keysym = *symbolic;
Expand All @@ -1963,6 +1964,7 @@ static int x2sqKeyPlain(XKeyEvent *xevt, KeySym *symbolic)
if (keysym >= XK_A && keysym <= XK_Z)
return (int)'A' + (keysym - XK_A);
}
#endif
return charCode;
}

Expand Down

0 comments on commit 929bf65

Please sign in to comment.