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:
Ray Strode 2021-10-06 16:04:30 -04:00
parent 4d1ce0de41
commit f5293a56e6

View file

@ -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();
});