Ticket #2380: xpra-html5-Client-swap-keys-stuck.patch
File xpra-html5-Client-swap-keys-stuck.patch, 644 bytes (added by , 21 months ago) |
---|
-
trunk/src/html5/js/Client.js
old new 782 782 var me = this; 783 783 setTimeout(function () { 784 784 me.send(packet); 785 if (pressed && me.swap_keys&& raw_modifiers.includes("meta") && ostr!="meta") {785 if (pressed && Utilities.isMacOS() && raw_modifiers.includes("meta") && ostr!="meta") { 786 786 //macos will swallow the key release event if the meta modifier is pressed, 787 787 //so simulate one immediately: 788 788 packet = ["key-action", me.topwindow, keyname, false, modifiers, keyval, str, keycode, group];