GUAC-708: Do not allow user selection within text input (in case a user presses Ctrl+A, for example).
This commit is contained in:
1 parent
8d0923db2f
commit
4c4a6a9bfc
1 file changed
+5
@@ -2244,6 +2244,11 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
|
|
||||||
}, false);
|
}, 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
|
* Zoom
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in new issue
Block a user