VulpesOS/assets/webapps/keyboard.gaiamobile.org/js/layouts/vi-Qwerty.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

41 lines
1.3 KiB
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Keyboards['vi-Qwerty'] = {
label: 'Vietnamese',
shortLabel: 'Vi',
menuLabel: 'Tiếng Việt (QWERTY)',
imEngine: 'vietnamese',
needsCandidatePanel: true,
width: 10,
types: ['text', 'url', 'email'],
lang: 'vi',
alt: {
'a': 'ăâ',
'd': 'đ',
'e': 'ê',
'o': 'ôơ',
'u': 'ư',
'.': ',?!-;:'
},
keys: [
[
{ value: 'q' }, { value: 'w' }, { value: 'e' }, { value: 'r' },
{ value: 't' } , { value: 'y' }, { value: 'u' }, { value: 'i' },
{ value: 'o' }, { value: 'p' }
], [
{ value: 'a' }, { value: 's' }, { value: 'd' }, { value: 'f' },
{ value: 'g' } , { value: 'h' }, { value: 'j' }, { value: 'k' },
{ value: 'l' }
], [
{ value: '⇪', ratio: 1.5, keyCode: KeyEvent.DOM_VK_CAPS_LOCK },
{ value: 'z' }, { value: 'x' }, { value: 'c' }, { value: 'v' },
{ value: 'b' }, { value: 'n' }, { value: 'm' },
{ value: '⌫', ratio: 1.5, keyCode: KeyEvent.DOM_VK_BACK_SPACE }
], [
{ value: '&nbsp', ratio: 8, keyCode: KeyboardEvent.DOM_VK_SPACE },
{ value: '↵', ratio: 2, keyCode: KeyEvent.DOM_VK_RETURN }
]
]
};