-
Notifications
You must be signed in to change notification settings - Fork 42
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
Added Language file for Norwegian keyboard layout #46
Added Language file for Norwegian keyboard layout #46
Conversation
'vk_oem_period' : '.', | ||
|
||
'shift+vk_oem_minus' : '?', | ||
'shift+vk_oem_plus' : '+', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be ` ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which one do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are correct. But, that one's also a dead key. Have commented it out, and commented that it's a dead key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.
@@ -0,0 +1,43 @@ | |||
import {LayoutMap} from './Layout'; | |||
|
|||
export const id = 'NO QWERTY'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make the id easier to understand by using Norwegian QWERTY
, and rename the file to Norwegian_QWERTY.ts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weeelll.. NO is the ISO3166 two-letter country code for Norway, so it is actually a sensible choice. The problem is that it's also the word 'NO'. Say you get an Azerbaijanian layout, Would you call it 'AZ' or Azerbaijanian? Maybe we should make one more example, just to clarify that this is actually the country code, and not "Not a QWERTY keyboard mapping"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with ISO3166 code ;)
This is great. I think a comment above the export const id
line would be clear enough for contributors.
# ISO3166 country code: https://www.iso.org/obp/ui/#search/code/
export const id = 'NO QWERTY';
Cloud you add this layout option to |
BTW, I couldn't get testing the layout to work. I opened VSCode, but then you said to "Open the root folder" and press F5. Where do I 'install' the plugin from source? |
For testing, you should
Let me know where you stuck in. |
You may find this helpful. |
Sorry, I forgot to "Open folder", so I couldn't open it. Now I managed, but it basically just lets me enter ONE character in the new dev-vscode window that shows up, no matter which keyboard layout I use. |
I tried your branch, and realized I forgot some code you need to add: diff --git a/src/Layouts/Layout.ts b/src/Layouts/Layout.ts
index 8b10e4f..7d22031 100644
--- a/src/Layouts/Layout.ts
+++ b/src/Layouts/Layout.ts
@@ -1,4 +1,5 @@
import * as US_QWERTY from './US_QWERTY';
+import * as NO_QWERTY from './NO_QWERTY';
export interface LayoutMap {
[key: string]: string;
@@ -52,3 +53,4 @@ export class Layout {
}
Layout.register(US_QWERTY.id, US_QWERTY.map);
+Layout.register(NO_QWERTY.id, NO_QWERTY.map); This means loading |
I just don't get it. I cannot enter more than ONE character after entering insert mode. Then nothing happens. Even with US keyboard layout (same with Norwegian). Don't think not mapping the dead keys work either. Get error on load when I add your edits, and have commented out the dead keys. |
@aioutecism I have the same problem as @erikbra. I have added Swiss German layout in #48 |
@erikbra |
@magbeat |
Hi @erikbra I merged the keyboard layout main branch into master. |
Since microsoft/vscode#1432 is addressed. If you'd like to track status of obtaining new APIs, please subscribe to this. |
No description provided.