mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-724: Automatically focus the first client if no client has yet been focused.
This commit is contained in:
@@ -232,7 +232,8 @@ angular.module('client').factory('guacClientManager', ['$injector',
|
||||
clients.push(service.getManagedClient(id));
|
||||
});
|
||||
|
||||
if (clients.length === 1) {
|
||||
// Focus the first client if there are no clients focused
|
||||
if (clients.length >= 1 && _.findIndex(clients, client => client.clientProperties.focused) === -1) {
|
||||
clients[0].clientProperties.focused = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user