We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d3a9e8 + 1801403 commit 3845008Copy full SHA for 3845008
src/browser/Terminal.ts
@@ -1140,6 +1140,14 @@ export class Terminal extends CoreTerminal implements ITerminal {
1140
return true;
1141
}
1142
1143
+ // HACK: Process A-Z in the keypress event to fix an issue with macOS IMEs where lower case
1144
+ // letters cannot be input while caps lock is on.
1145
+ if (event.key && !event.ctrlKey && !event.altKey && !event.metaKey && event.key.length === 1) {
1146
+ if (event.key.charCodeAt(0) >= 65 && event.key.charCodeAt(0) <= 90) {
1147
+ return true;
1148
+ }
1149
1150
+
1151
if (this._unprocessedDeadKey) {
1152
this._unprocessedDeadKey = false;
1153
0 commit comments