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

Commit

Permalink
Merge pull request #11749 from lightsofapollo/r
Browse files Browse the repository at this point in the history
Revert 3rd party keyboard support.
  • Loading branch information
lightsofapollo committed Aug 26, 2013
2 parents 05d8283 + e84dcda commit 42aa1e2
Show file tree
Hide file tree
Showing 25 changed files with 404 additions and 2,219 deletions.
236 changes: 96 additions & 140 deletions apps/keyboard/js/keyboard.js

Large diffs are not rendered by default.

46 changes: 1 addition & 45 deletions apps/keyboard/js/layout.js
Expand Up @@ -285,7 +285,7 @@ const Keyboards = {
]
}
},
'pt-BR': {
pt_BR: {
label: 'Portuguese',
menuLabel: 'Português',
imEngine: 'latin',
Expand Down Expand Up @@ -634,50 +634,6 @@ 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
173 changes: 6 additions & 167 deletions apps/keyboard/manifest.webapp
@@ -1,181 +1,20 @@
{
"name": "Built-in Keyboard",
"description": "Built-in Keyboard",
"name": "Keyboard",
"description": "Gaia Keyboard",
"type": "certified",
"role": "keyboard",
"launch_path": "/settings.html",
"developer": {
"name": "The Gaia Team",
"url": "https://github.com/mozilla-b2g/gaia"
},
"permissions": {
"settings": { "access": "readwrite" },
"keyboard": {}
},
"entry_points": {
"en": {
"launch_path": "/index.html#en",
"name": "English",
"description": "English layout",
"types": ["url", "text"],
"locales": {
"en-US": {
"name": "English",
"description": "English layout"
},
"zh-TW": {
"name": "英文",
"description": "英文鍵盤"
}
}
},
"en-Dvorak": {
"launch_path": "/index.html#en-Dvorak",
"name": "English (Dvorak)",
"description": "Dvorak layout",
"types": ["url", "text"]
},
"es": {
"launch_path": "/index.html#es",
"name": "Spanish",
"description": "Spanish layout",
"types": ["url", "text"]
},
"pt-BR": {
"launch_path": "/index.html#pt-BR",
"name": "Portuguese Brazilian",
"description": "Portuguese Brazilian layout",
"types": ["url", "text"]
},
"pl": {
"launch_path": "/index.html#pl",
"name": "Polish",
"description": "Polish layout",
"types": ["url", "text"]
},
"ca": {
"launch_path": "/index.html#ca",
"name": "Catalan",
"description": "Catalan layout",
"types": ["url", "text"]
},
"cz": {
"launch_path": "/index.html#cz",
"name": "Czech",
"description": "Czech layout",
"types": ["url", "text"]
},
"fr": {
"launch_path": "/index.html#fr",
"name": "French",
"description": "French layout",
"types": ["url", "text"]
},
"de": {
"launch_path": "/index.html#de",
"name": "German",
"description": "German layout",
"types": ["url", "text"]
},
"nb": {
"launch_path": "/index.html#nb",
"name": "Norwegian Bokmal",
"description": "Norwegian Bokmal layout",
"types": ["url", "text"]
},
"sv": {
"launch_path": "/index.html#sv",
"name": "Swedish layout",
"description": "Swedish layout",
"types": ["url", "text"]
},
"sk": {
"launch_path": "/index.html#sk",
"name": "Slovak",
"description": "Slovak layout",
"types": ["url", "text"]
},
"tr-Q": {
"launch_path": "/index.html#tr-Q",
"name": "Turkish Q",
"description": "Turkish Q layout",
"types": ["url", "text"]
},
"tr-F": {
"launch_path": "/index.html#tr-F",
"name": "Turkish F",
"description": "Turkish F layout",
"types": ["url", "text"]
},
"ro": {
"launch_path": "/index.html#ro",
"name": "Romanian",
"description": "Romanian layout",
"types": ["url", "text"]
},
"ru": {
"launch_path": "/index.html#ru",
"name": "Russian",
"description": "Russian layout",
"types": ["url", "text"]
},
"sr-Cyrl": {
"launch_path": "/index.html#sr-Cyrl",
"name": "Serbian (Cyrillic)",
"description": "Serbian (Cyrillic) layout",
"types": ["url", "text"]
},
"sr-Latn": {
"launch_path": "/index.html#sr-Latn",
"name": "Serbian (Latin)",
"description": "Serbian (Latin) layout",
"types": ["url", "text"]
},
"ar": {
"launch_path": "/index.html#ar",
"name": "Arabic",
"description": "Arabic layout",
"types": ["url", "text"]
},
"he": {
"launch_path": "/index.html#he",
"name": "Hebrew",
"description": "Hebrew layout",
"types": ["url", "text"]
},
"hu": {
"launch_path": "/index.html#hu",
"name": "Hungarian",
"description": "Hungarian layout",
"types": ["url", "text"]
},
"el": {
"launch_path": "/index.html#el",
"name": "Greek",
"description": "Greek layout",
"types": ["url", "text"]
},
"zh-Hans-Pinyin": {
"launch_path": "/index.html#zh-Hans-Pinyin",
"name": "Pinyin",
"description": "Pinyin",
"types": ["url", "text"]
},
"number": {
"launch_path": "/index.html#numberLayout",
"name": "Number",
"description": "Number layout",
"types": ["number"]
}
"settings":{ "access": "readwrite" },
"keyboard":{}
},
"locales": {
"en-US": {
"name": "Built-in Keyboard",
"description": "Built-in Keyboard"
},
"zh-TW": {
"name": "預設鍵盤",
"description": "預設鍵盤"
"name": "Keyboard",
"description": "Gaia Keyboard"
}
},
"default_locale": "en-US"
Expand Down
10 changes: 0 additions & 10 deletions apps/keyboard/settings.html

This file was deleted.

0 comments on commit 42aa1e2

Please sign in to comment.