-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when adding layout #45
Comments
Update: It might be a system thing (Debian 12 + Gnome). Because now I get the same error and a grey square up in the left corner of the screen, the moment I reinstall the extension. I emptied |
Would you mind sending me your keycodes.json, so I can look through it to see if anything's wrong with it? |
I add here. It is a problem with changing the keyboard language. The error does not seem to be the same, but... files that were modified: in: files: (the keycode.json modification is just a test, a copy of "qwerty" renamed "latin" was added, and only lines 347 to 353 were modified to show the letter ñ and Ñ) result: the keyboard does not open. I attach screenshots of modifications and keycodes file. ;-) |
I figured out what is happening. In order for this to work, you would need to recreate the entire Spanish layout in keycodes.json, and then on line 547 and 548, you would need to input the corresponding keyboard layout. Right now, because the added keyboard layout is not associated with a built in input source, it cannot initialize the keyboard with an input source. You could fix this by finding the associated keyboard layout, but I would simply suggest using the compose key combined with key sequences to accomplish the same effect. I will see if I have time to implement a Norwegian layout, but it appears that I am gonna have to implement a 4th layer (alt + shift) in order to accomplish this. |
Hi. Love this extension. I'm not sure this is a bug or something I'm doing wrong.
I'm trying to add a Norwegian layout by following the ReadMe. When I'm done and want to try it out, it gives the error:
Here's what I did:
I updated the keycodes.json, first with most of the new layout, then with only one letter changed to see if there was something I screwed up in there. I then added the name to langList in prefs.js and to keycodes in extension.js (which now are on lines 48 and 67. Some code must have been written since the line numbers are different from the ReadMe.)
I'm thinking that there's a flaw in the keycodes.json that makes the GLib.file_get_contents function not ok, and then the keycodes variable won't get assigned anything. But I can't figure out what I'm doing wrong in the json file.
The text was updated successfully, but these errors were encountered: