GUAC-807: Fixed connection parameter editing and made menu show on keydown instead of keyup.
This commit is contained in:
1 parent
1b121ba665
commit
72c82aea8b
6 files changed
+333
-25
No files matched your search
@@ -95,11 +95,8 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
|
||||
}
|
||||
|
||||
$scope.$on('guacKeydown', function keydownListener(event, keysym, keyboard) {
|
||||
keysCurrentlyPressed[keysym] = true;
|
||||
});
|
||||
|
||||
// Listen for broadcasted keyup events and fire the appropriate listeners
|
||||
$scope.$on('guacKeyup', function keyupListener(event, keysym, keyboard) {
|
||||
keysCurrentlyPressed[keysym] = true;
|
||||
|
||||
/*
|
||||
* If only menu keys are pressed, and we have one keysym from each group,
|
||||
* and one of the keys is being released, show the menu.
|
||||
@@ -125,7 +122,10 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
|
||||
keysCurrentlyPressed = {};
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// Listen for broadcasted keyup events and fire the appropriate listeners
|
||||
$scope.$on('guacKeyup', function keyupListener(event, keysym, keyboard) {
|
||||
delete keysCurrentlyPressed[keysym];
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user