mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1293: Prevent selection of filename text during navigation.
This commit is contained in:
@@ -164,6 +164,12 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
|
||||
element.addClass('focused');
|
||||
});
|
||||
|
||||
// Prevent text selection during navigation
|
||||
element.on('selectstart', function avoidSelect(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
return element;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user