mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUAC-809: Show OSK if selected within menu.
This commit is contained in:
@@ -145,7 +145,10 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
|
||||
|
||||
// Hide menu by default
|
||||
$scope.menuShown = false;
|
||||
|
||||
|
||||
// Use physical keyboard by default
|
||||
$scope.inputMethod = 'none';
|
||||
|
||||
// Convenience method for closing the menu
|
||||
$scope.closeMenu = function closeMenu() {
|
||||
$scope.menuShown = false;
|
||||
@@ -198,6 +201,14 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
|
||||
return true;
|
||||
}
|
||||
|
||||
// Show/hide UI elements depending on input method
|
||||
$scope.$watch('inputMethod', function setInputMethod(inputMethod) {
|
||||
|
||||
// Show on-screen keyboard only if selected
|
||||
$scope.showOSK = (inputMethod === 'osk');
|
||||
|
||||
});
|
||||
|
||||
$scope.$watch('menuShown', function setKeyboardEnabled(menuShown, menuShownPreviousState) {
|
||||
|
||||
// Send clipboard data if menu is hidden
|
||||
|
Reference in New Issue
Block a user