GUAC-1293: Prevent selection of filename text during navigation.
This commit is contained in:
1 parent
56d35a84d8
commit
4ae069d424
1 file changed
+6
@@ -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