Style and comment cleanup.
@@ -551,9 +551,18 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
!_.isEmpty(_.pick(ALT_KEYS, currentKeysPressedKeys)) &&
!_.isEmpty(_.pick(CTRL_KEYS, currentKeysPressedKeys))
) {
+
+ // Don't send this event through to the client.
event.preventDefault();
+
+ // 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);
}
