mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUACAMOLE-113: Style and comment cleanup.
This commit is contained in:
@@ -551,10 +551,19 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
|||||||
!_.isEmpty(_.pick(ALT_KEYS, currentKeysPressedKeys)) &&
|
!_.isEmpty(_.pick(ALT_KEYS, currentKeysPressedKeys)) &&
|
||||||
!_.isEmpty(_.pick(CTRL_KEYS, currentKeysPressedKeys))
|
!_.isEmpty(_.pick(CTRL_KEYS, currentKeysPressedKeys))
|
||||||
) {
|
) {
|
||||||
event.preventDefault();
|
|
||||||
delete keysCurrentlyPressed[keysym];
|
// Don't send this event through to the client.
|
||||||
substituteKeysPressed[keysym] = DEL_KEY;
|
event.preventDefault();
|
||||||
$scope.$broadcast('guacSyntheticKeydown', DEL_KEY);
|
|
||||||
|
// Remove the original key press
|
||||||
|
delete keysCurrentlyPressed[keysym];
|
||||||
|
|
||||||
|
// Record the substituted key press so that it can be
|
||||||
|
// properly dealt with later.
|
||||||
|
substituteKeysPressed[keysym] = DEL_KEY;
|
||||||
|
|
||||||
|
// Send through the delete key.
|
||||||
|
$scope.$broadcast('guacSyntheticKeydown', DEL_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user