GUAC-809: Show OSK if selected within menu.

This commit is contained in:
Michael Jumper
2014-12-18 05:01:51 -08:00
parent de24eef9b8
commit 1e39ff7569
5 changed files with 27 additions and 5 deletions

View File

@@ -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