Skip to content

Commit

Permalink
change stupid event names
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishram1123 committed Feb 22, 2024
1 parent 6a181b8 commit cf59406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default class GjsOskExtension extends Extension {

this._indicator.connect("button-press-event", () => this._toggleKeyboard());
this._indicator.connect("touch-event", (_actor, event) => {
if (event.type() == 11) this._toggleKeyboard()
if (event.type() == Clutter.EventType.TOUCH_END) this._toggleKeyboard()
});
Main.panel.addToStatusArea("GJS OSK Indicator", this._indicator);
}
Expand Down Expand Up @@ -183,7 +183,7 @@ export default class GjsOskExtension extends Extension {

this._indicator.connect("button-press-event", () => this._toggleKeyboard());
this._indicator.connect("touch-event", (_actor, event) => {
if (event.type() == 11) this._toggleKeyboard()
if (event.type() == Clutter.EventType.TOUCH_END) this._toggleKeyboard()
});
Main.panel.addToStatusArea("GJS OSK Indicator", this._indicator);
} else {
Expand Down

0 comments on commit cf59406

Please sign in to comment.