GUAC-708: Do not allow user selection within text input (in case a user presses Ctrl+A, for example).

This commit is contained in:
Michael Jumper committed 2014-05-22 15:09:02 -07:00
1 parent 8d0923db2f
commit 4c4a6a9bfc
1 file changed
+5
@@ -2244,6 +2244,11 @@ GuacUI.Client.attach = function(guac) {
}, false);
// Do not allow event target contents to be selected during input
GuacUI.Client.text_input.target.addEventListener("selectstart", function(e) {
e.preventDefault();
}, false);
/*
* Zoom
*/