vietnamese.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Vietnamese keyboard layouts + Telex key combinations (see https://github.com/Mottie/Keyboard/pull/136)
  2. * contains layout: 'vietnamese-qwerty'
  3. * Vinh Can Code: tbvinh@gmail.com
  4. *
  5. * To use:
  6. * Point to this js file into your page header: <script src="layouts/vietnamese.js" type="text/javascript"></script>
  7. * Initialize the keyboard using: $('input').keyboard({ layout: 'vietnamese-qwerty' });
  8. *
  9. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  10. */
  11. /* based on http://ascii-table.com/keyboard.php/461 */
  12. jQuery.keyboard.layouts['vietnamese-qwerty'] = {
  13. 'name' : 'vietnamese-qwerty',
  14. 'lang' : ['vi'],
  15. 'normal' : [
  16. "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
  17. "{tab} q w e r t y u i o p [ ] \\",
  18. "a s d f g h j k l ; ' {enter}",
  19. "{shift} z x c v b n m < > , . / {shift}",
  20. "{accept} {alt} {space} {alt} {cancel}"
  21. ],
  22. 'shift' : [
  23. '~ ! @ # $ % ^ & * ( ) _ + {bksp}',
  24. "{tab} Q W E R T Y U I O P { } |",
  25. "A S D F G H J K L : ' {enter}",
  26. "{shift} Z X C V B N M < > ; : ? {shift}",
  27. "{accept} {alt} {space} {alt} {cancel}"
  28. ],
  29. 'alt' : [
  30. '{empty} \u0103 \u00e2 \u00ea \u00f4 {empty} \u031b {empty} {empty} {empty} \u0111 \u002d \u20ab {bksp}',
  31. "{tab} {empty} {empty} {empty} {empty} {empty} \u00ff {empty} {empty} \u0153 {empty} \u01b0 \u01a1 {empty}",
  32. "{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} { } \u0302 {enter}",
  33. "{shift} {empty} {empty} \u00e7 {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {shift}",
  34. "{accept} {alt} {space} {alt} {cancel}"
  35. ],
  36. 'alt-shift' : [
  37. '{empty} \u0102 \u00c2 \u00ca \u00d4 {empty} {empty} {empty} {empty} {empty} \u0110 \u005f + {bksp}',
  38. "{tab} {empty} {empty} {empty} {empty} {empty} \u0178 {empty} {empty} \u0152 {empty} \u01af \u01a0 {empty}",
  39. "{empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} { } \u0308 {enter}",
  40. "{shift} {empty} {empty} \u00c7 {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {empty} {shift}",
  41. "{accept} {alt} {space} {alt} {cancel}"
  42. ]
  43. };