GUACAMOLE-352: Handle input/composition events while bubbling. Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/802fec9b Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/802fec9b Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/802fec9b
Branch: refs/heads/master Commit: 802fec9bfd12afc3a3ef2ecad2120303e858eed6 Parents: 9065b49 Author: Michael Jumper <[email protected]> Authored: Mon Dec 18 16:02:19 2017 -0800 Committer: Michael Jumper <[email protected]> Committed: Tue Jan 16 10:20:43 2018 -0800 ---------------------------------------------------------------------- guacamole-common-js/src/main/webapp/modules/Keyboard.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/802fec9b/guacamole-common-js/src/main/webapp/modules/Keyboard.js ---------------------------------------------------------------------- diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js index b0930c2..61889c1 100644 --- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js +++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js @@ -1293,7 +1293,7 @@ Guacamole.Keyboard = function Keyboard(element) { // Type all content written if (e.data && !e.isComposing) { - element.removeEventListener("compositionend", handleComposition, true); + element.removeEventListener("compositionend", handleComposition, false); guac_keyboard.type(e.data); } @@ -1319,15 +1319,15 @@ Guacamole.Keyboard = function Keyboard(element) { // Type all content written if (e.data) { - element.removeEventListener("input", handleInput, true); + element.removeEventListener("input", handleInput, false); guac_keyboard.type(e.data); } }; // Automatically type text entered into the wrapped field - element.addEventListener("input", handleInput, true); - element.addEventListener("compositionend", handleComposition, true); + element.addEventListener("input", handleInput, false); + element.addEventListener("compositionend", handleComposition, false); };
