[gnome-shell/wip/carlosg/osk-updates: 12/26] keyboard: Drop needless signal from OSK Key object




commit 76c1279fef93ab2e3c97c6a9c5078888fa62731e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Apr 14 20:49:00 2022 +0200

    keyboard: Drop needless signal from OSK Key object
    
    The 'pressed' signal will be emitted in the same circumstances now,
    there's no need for a separate 'activated' signal.

 js/ui/keyboard.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index b91efc4f3d..3af03e8248 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -290,7 +290,6 @@ var LanguageSelectionPopup = class extends PopupMenu.PopupMenu {
 
 var Key = GObject.registerClass({
     Signals: {
-        'activated': {},
         'long-press': {},
         'pressed': {},
         'released': {},
@@ -354,8 +353,6 @@ var Key = GObject.registerClass({
     }
 
     _press(button, commitString) {
-        this.emit('activated');
-
         if (button == this.keyButton) {
             this._pressTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
                 KEY_LONG_PRESS_TIME,
@@ -913,7 +910,7 @@ var EmojiPager = GObject.registerClass({
 
             key.keyButton.set_button_mask(0);
 
-            key.connect('activated', () => {
+            key.connect('pressed', () => {
                 this._currentKey = key;
             });
             key.connect('long-press', () => {


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