GUAC-1293: Prevent selection of filename text during navigation.

This commit is contained in:
Michael Jumper
2015-08-13 12:02:32 -07:00
parent 56d35a84d8
commit 4ae069d424

View File

@@ -164,6 +164,12 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
element.addClass('focused'); element.addClass('focused');
}); });
// Prevent text selection during navigation
element.on('selectstart', function avoidSelect(e) {
e.preventDefault();
e.stopPropagation();
});
return element; return element;
}; };