Skip to content

Commit

Permalink
#1 match different spellings for 'dead' keys
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 10, 2022
1 parent 3e31a14 commit eda838d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,8 @@ XpraClient.prototype.do_keyb_process = function(pressed, event) {
let str = event.key || String.fromCharCode(keycode);
let unpress_now = false;
this.debug("keyboard", "last keycode pressed=", this.last_keycode_pressed, ", keycode=", keycode, ", pressed=", pressed, ", str=", str);
if (this.last_keycode_pressed!=keycode && !pressed && str=="Dead") {
const dead = str.toLowerCase()=="dead";
if (this.last_keycode_pressed!=keycode && !pressed && dead) {
//dead key unpress without first getting a key pressed event,
//send a pair:
pressed = true;
Expand Down

0 comments on commit eda838d

Please sign in to comment.