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. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2278>
This commit is contained in:
parent
ce80e16173
commit
5b950d7db1
@ -297,7 +297,6 @@ var LanguageSelectionPopup = class extends PopupMenu.PopupMenu {
|
|||||||
|
|
||||||
var Key = GObject.registerClass({
|
var Key = GObject.registerClass({
|
||||||
Signals: {
|
Signals: {
|
||||||
'activated': {},
|
|
||||||
'long-press': {},
|
'long-press': {},
|
||||||
'pressed': {},
|
'pressed': {},
|
||||||
'released': {},
|
'released': {},
|
||||||
@ -356,8 +355,6 @@ var Key = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_press(button) {
|
_press(button) {
|
||||||
this.emit('activated');
|
|
||||||
|
|
||||||
if (button === this.keyButton) {
|
if (button === this.keyButton) {
|
||||||
this._pressTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
|
this._pressTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
|
||||||
KEY_LONG_PRESS_TIME,
|
KEY_LONG_PRESS_TIME,
|
||||||
@ -907,7 +904,7 @@ var EmojiPager = GObject.registerClass({
|
|||||||
|
|
||||||
key.keyButton.set_button_mask(0);
|
key.keyButton.set_button_mask(0);
|
||||||
|
|
||||||
key.connect('activated', () => {
|
key.connect('pressed', () => {
|
||||||
this._currentKey = key;
|
this._currentKey = key;
|
||||||
});
|
});
|
||||||
key.connect('long-press', () => {
|
key.connect('long-press', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user