This was a temporary solution. Please use the original Primary Input on LockScreen extension. Automatically change the keyboard layout on the lock screen to the first one in your list. This is a small, simple extension that solves an annoying issue for users with several different keyboard layouts (until it gets solved upstream). Whenever the lock screen kicks in, this extension checks for the currently selected keyboard layout and switches it to the main one (the first one in your list of keyboard layouts in Settings). This is a fork and ESM port of the Primary Input on LockScreen extension.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
1. You don't have `inputSourceManager` in disable and `_check_state()`. Use `this._inputSourceManager` or `this.#inputSourceManager` (line 32). 2. You shouldn't check `isLocked` on disable since you are using session modes. To fix that, replace line 43 `if` condition with: ```js if (this._lockScreenHandlerId) { ```