mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
keyboard: Use === instead of == when comparing actions
This just updates a part of the code to follow current recommended practice for equality testing, in preparation for it to be updated.
This commit is contained in:
parent
4d1ce0de41
commit
f5293a56e6
1 changed files with 4 additions and 4 deletions
|
|
@ -1565,13 +1565,13 @@ var Keyboard = GObject.registerClass({
|
|||
}
|
||||
});
|
||||
extraButton.connect('released', () => {
|
||||
if (keyval != null)
|
||||
if (keyval)
|
||||
this._keyboardController.keyvalRelease(keyval);
|
||||
else if (action == 'hide')
|
||||
else if (action === 'hide')
|
||||
this.close();
|
||||
else if (action == 'languageMenu')
|
||||
else if (action === 'languageMenu')
|
||||
this._popupLanguageMenu(actor);
|
||||
else if (action == 'emoji')
|
||||
else if (action === 'emoji')
|
||||
this._toggleEmoji();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue