From 3b81465d3274ece9020a140c00844479d47338d1 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 15 Aug 2017 14:48:47 -0400 Subject: [PATCH] layout: actually hide keyboard when hiding keyboard Right now we just tuck it off screen, which may leak onto another screen. This commit actually hides it. https://bugzilla.gnome.org/show_bug.cgi?id=786332 --- js/ui/layout.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/layout.js b/js/ui/layout.js index fd3b3f523..a2cb6e047 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -684,8 +684,10 @@ var LayoutManager = new Lang.Class({ }, showKeyboard: function () { + this.keyboardBox.show(); Tweener.addTween(this.keyboardBox, { anchor_y: this.keyboardBox.height, + opacity: 255, time: KEYBOARD_ANIMATION_TIME, transition: 'easeOutQuad', onComplete: this._showKeyboardComplete, @@ -711,6 +713,7 @@ var LayoutManager = new Lang.Class({ } Tweener.addTween(this.keyboardBox, { anchor_y: 0, + opacity: 0, time: immediate ? 0 : KEYBOARD_ANIMATION_TIME, transition: 'easeInQuad', onComplete: this._hideKeyboardComplete, @@ -721,6 +724,7 @@ var LayoutManager = new Lang.Class({ }, _hideKeyboardComplete: function() { + this.keyboardBox.hide(); this._updateRegions(); },