Review of "GJS OSK" version 58

Details Page Preview

A new Onscreen Keyboard built using GNOME JS

Extension Homepage
https://github.com/Vishram1123/gjs-osk

No comments.

Diff Against

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) error 2 warning 4

Shexli found 6 issues that may need reviewer attention.

EGO-I-001 error

deprecated modules must not be imported

Deprecated module `ByteArray` is imported.

Do not use deprecated modules

  • extension.js:20
    ByteArray = imports.byteArray

EGO-P-004 error

GSettings schema XML filename must match schema id

GSettings schema filename must match `<schema-id>.gschema.xml`.

GSettings Schemas

  • schemas/org.gnome.shell.extensions.gjsosk.gschema.xml
    id='org.gnome.shell.extensions.gjsosk.indicator' path='/org/gnome/shell/extensions/gjsosk/indicator/'

EGO-L-002 warning

objects created by extension should be destroyed in disable()

Objects assigned in `enable()` are missing matching `.destroy()` calls in `disable()` or its helper methods.

Destroy all objects

  • extension.js:791
    this.nonDragBlocker = new Clutter.Actor()
  • extension.js:1420
            this.suggestionBox = new St.BoxLayout({
                x_expand: true,
                y_expand: true,
                visible: false
            })
  • extension.js:1708
    keyBtn
  • extension.js:1703
    keyBtn

EGO-L-005 warning

owned object references should be released in disable()

Owned references that are cleaned up in `disable()` should also be released with `null` or `undefined`.

Destroy all objects

  • extension.js:791
    this.nonDragBlocker = new Clutter.Actor()
  • extension.js:1420
            this.suggestionBox = new St.BoxLayout({
                x_expand: true,
                y_expand: true,
                visible: false
            })

EGO-L-003 warning

signals connected by extension should be disconnected in disable()

Signals assigned in `enable()` are missing matching disconnect calls in `disable()` or its helper methods.

Disconnect all signals

  • extension.js:611
                this._indicator.connect("button-press-event", () => {
                    this._toggleKeyboard();
                    return Clutter.EVENT_STOP;
                })
  • extension.js:669
                    this._indicator.connect("button-press-event", () => {
                        this._toggleKeyboard();
                        return Clutter.EVENT_STOP;
                    })
  • extension.js:615
                this._indicator.connect("touch-event", (_actor, event) => {
                    if (event.type() == Clutter.EventType.TOUCH_END) {
                        this._toggleKeyboard();
                        return Clutter.EVENT_STOP;
                    }
                    return Clutter.EVENT_PROPAGATE;
        
  • extension.js:673
                    this._indicator.connect("touch-event", (_actor, event) => {
                        if (event.type() == Clutter.EventType.TOUCH_END) {
                            this._toggleKeyboard();
                            return Clutter.EVENT_STOP;
                        }
                        return Clutt
  • extension.js:988
                this._imStageCaptureId = global.stage.connect('captured-event', (_s, ev) => {
                    if (pendingResetId) {
                        const t = ev.type();
                        if (t === Clutter.EventType.BUTTON_PRESS || t === Clutter.EventType.TOUCH_BEGIN) {
                            cons
  • extension.js:850
                bottomDragAction.connect('activated', () => {
                    this.open(true);
                    this.openedFromButton = true;
                    this.gestureInProgress = false;
                })
  • extension.js:861
                bottomDragAction.connect('gesture-cancel', () => {
                    if (this.gestureInProgress) {
                        this.close()
                    }
                    this.gestureInProgress = false;
                    return Clutter.EVENT_PROPAGATE;
                })
  • extension.js:855
                bottomDragAction.connect('progress', (_action, progress) => {
                    if (!this.gestureInProgress)
                        this.open(false)
                    this.setOpenState(Math.min(Math.max(0, (progress / (side % 2 == 0 ? this.box.height : this.box.width)) * 100), 100))
               
  • extension.js:1521
            btn.connect("button-press-event", () => {
                action();
                return Clutter.EVENT_STOP;
            })
  • extension.js:1525
    btn.connect("button-release-event", () => Clutter.EVENT_STOP)
  • extension.js:1526
            btn.connect("touch-event", (_actor, event) => {
                const type = event.type();
                if (type == Clutter.EventType.TOUCH_BEGIN) {
                    action();
                    return Clutter.EVENT_STOP;
                }
                if (type == Clutter.EventType.TOUCH_END || type == Cl
  • extension.js:840
            this.edgeStrip.connect("touch-event", (actor, event) => {
                this.modalEdgeSwipe(event);
                return Clutter.EVENT_STOP;
            })
  • extension.js:2052
                item.connect("button-press-event", () => {
                    pressEv("mouse");
                    return Clutter.EVENT_STOP;
                })
  • extension.js:2056
                item.connect("button-release-event", () => {
                    releaseEv();
                    return Clutter.EVENT_STOP;
                })
  • extension.js:1926
                item.connect("destroy", () => {
                    if (item.button_pressed !== null) {
                        clearTimeout(item.button_pressed)
                        item.button_pressed = null
                    }
                    if (item.button_repeat !== null) {
                        clearInterval(
  • extension.js:2060
                item.connect("touch-event", (_actor, event) => {
                    const type = event.type();
                    if (type == Clutter.EventType.TOUCH_BEGIN) {
                        pressEv("touch");
                        return Clutter.EVENT_STOP;
                    } else if (type == Clutter.EventTy

EGO-L-004 warning

main loop sources should be removed in disable()

Main loop sources assigned in `enable()` are missing matching removals in `disable()` or its helper methods.

Remove main loop sources

  • extension.js:232
                    setTimeout(() => {
                        let focus = Main.inputMethod.currentFocus;
                        if (focus != null && focus.is_focused())
                            this._onPanelState(Clutter.InputPanelState.ON);
                    }, 150)

All Versions