Skip to content

Commit

Permalink
Merge pull request #2052 from jflatow/unit-separator
Browse files Browse the repository at this point in the history
Send the unit separator for C-_, like some other keyboards
  • Loading branch information
Tyriar authored May 9, 2019
2 parents 2d0937a + dc236ae commit c1b5672
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/input/Keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ export function evaluateKeyboardEvent(
} else if (ev.key && !ev.ctrlKey && !ev.altKey && !ev.metaKey && ev.keyCode >= 48 && ev.key.length === 1) {
// Include only keys that that result in a _single_ character; don't include num lock, volume up, etc.
result.key = ev.key;
} else if (ev.key && ev.ctrlKey) {
if (ev.key === '_') { // ^_
result.key = C0.US;
}
}
break;
}
Expand Down

0 comments on commit c1b5672

Please sign in to comment.