diff --git a/guacamole/src/main/webapp/app/client/directives/guacFileBrowser.js b/guacamole/src/main/webapp/app/client/directives/guacFileBrowser.js index 4469cecbd..f5a8c684d 100644 --- a/guacamole/src/main/webapp/app/client/directives/guacFileBrowser.js +++ b/guacamole/src/main/webapp/app/client/directives/guacFileBrowser.js @@ -165,8 +165,10 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser( element.on('click', function focusFile(e) { // Fire file-specific action if already focused - if (element.hasClass('focused')) + if (element.hasClass('focused')) { fileAction(); + element.removeClass('focused'); + } // Otherwise mark as focused else {