Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 906767 - Swedish keyboard layout. r=rudylu
Browse files Browse the repository at this point in the history
Removed country distinction for Swedish keyboard layout

Removed country marker on sv keyboard layout name
  • Loading branch information
hansliss authored and RudyLu committed Sep 16, 2013
1 parent 7ac57fc commit 2049207
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/keyboard/js/keyboard.js
Expand Up @@ -221,6 +221,7 @@ const keyboardGroups = {
'german': ['de'],
'hungarian': ['hu'],
'norwegian': ['nb'],
'swedish': ['sv'],
'slovak': ['sk'],
'turkish': ['tr-Q', 'tr-F'],
'romanian': ['ro'],
Expand Down
44 changes: 44 additions & 0 deletions apps/keyboard/js/layout.js
Expand Up @@ -634,6 +634,50 @@ const Keyboards = {
]
]
},
sv: {
label: 'Swedish',
menuLabel: 'Svenska',
imEngine: 'latin',
alt: {
a: 'äáàâąã',
e: 'éèêëę€',
i: 'íìîï',
o: 'öóòôõ',
u: 'üúùûū',
s: 'śšşß',
S: 'ŚŠŞ',
n: 'ńñň',
c: 'çćč',
d: 'ðď',
r: 'ř',
t: 'ťþ',
z: 'źžż',
l: 'ł',
v: 'w',
'ä': 'œæ',
'ö': 'ø'
},
width: 11,
keys: [
[
{ value: 'q' },{ value: 'w' },{ value: 'e' },{ value: 'r' },
{ value: 't' },{ value: 'y' },{ value: 'u' },{ value: 'i' },
{ value: 'o' },{ value: 'p' },{ value: 'å' }
], [
{ value: 'a' },{ value: 's' },{ value: 'd' },{ value: 'f' },
{ value: 'g' },{ value: 'h' },{ value: 'j' },{ value: 'k' },
{ value: 'l' },{ value: 'ö' },{ value: 'ä' }
], [
{ value: '⇪', ratio: 2, keyCode: KeyEvent.DOM_VK_CAPS_LOCK },
{ value: 'z' },{ value: 'x' },{ value: 'c' },{ value: 'v' },
{ value: 'b' },{ value: 'n' },{ value: 'm' },
{ value: '⌫', ratio: 2, keyCode: KeyEvent.DOM_VK_BACK_SPACE }
], [
{ value: '&nbsp', ratio: 9, keyCode: KeyboardEvent.DOM_VK_SPACE },
{ value: '↵', ratio: 2, keyCode: KeyEvent.DOM_VK_RETURN }
]
]
},
ro: {
label: 'Romanian',
menuLabel: 'Română',
Expand Down
6 changes: 6 additions & 0 deletions apps/keyboard/manifest.webapp
Expand Up @@ -83,6 +83,12 @@
"description": "Norwegian Bokmal layout",
"types": ["url", "text"]
},
"sv": {
"launch_path": "/index.html#sv",
"name": "Swedish",
"description": "Swedish layout",
"types": ["url", "text"]
},
"sk": {
"launch_path": "/index.html#sk",
"name": "Slovak",
Expand Down

0 comments on commit 2049207

Please sign in to comment.