[gnome-shell/wip/carlosg/osk-updates: 35/43] ibusCandidatePopup: Clear OSK completion box on hide-panel hint




commit 9a346569df213e2992627e7ac436ca0a39a696b1
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Apr 22 20:23:21 2022 +0200

    ibusCandidatePopup: Clear OSK completion box on hide-panel hint
    
    This is necessary to clear the suggestions panel after e.g. commit.
    Since for OSK purposes we cannot invoke the panel again and future
    editions trigger a new lookup table, we are fine with just clearing
    the suggestion box here.

 js/ui/ibusCandidatePopup.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/ibusCandidatePopup.js b/js/ui/ibusCandidatePopup.js
index c57e289cbb..e2ae132ec2 100644
--- a/js/ui/ibusCandidatePopup.js
+++ b/js/ui/ibusCandidatePopup.js
@@ -293,6 +293,7 @@ class IbusCandidatePopup extends BoxPointer.BoxPointer {
             this._updateVisibility();
         });
         panelService.connect('hide-lookup-table', () => {
+            Main.keyboard.resetSuggestions();
             this._candidateArea.hide();
             this._updateVisibility();
         });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]