portuguese.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Portuguese (pt) keyboard layout
  2. * contains layout: 'portuguese-qwerty'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/portuguese-pt.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'portuguese-pt' });
  7. *
  8. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  9. * Portuguese-pt layout by Luiz Castelo-Branco ( translations at Castelo-Branco . org ), based on:
  10. * http://ascii-table.com/keyboard.php/163 and/with
  11. * Unicode 6.2 from http://www.unicode.org/Public/6.2.0/charts/CodeCharts.pdf
  12. */
  13. // portuguese-pt
  14. jQuery.keyboard.layouts['portuguese-qwerty'] = {
  15. 'name' : 'portuguese-qwerty',
  16. 'lang' : ['pt'],
  17. 'normal' : [
  18. "\u005C 1 2 3 4 5 6 7 8 9 0 \u0027 \u00ab {bksp}",
  19. "{tab} q w e r t y u i o p \u002b \u00b4",
  20. "a s d f g h j k l \u00e7 \u00ba \u007e {enter}",
  21. "{shift} \u003c z x c v b n m \u002c \u002e \u002d {shift}",
  22. "{cancel} {space} {alt} {combo} {accept}"
  23. ],
  24. 'shift' : [
  25. "\u007c \u0021 \u0022 \u0023 \u0024 \u0025 \u0026 \u002f \u0028 \u0029 \u003d \u003F \u00bb {bksp}",
  26. "{tab} Q W E R T Y U I O P \u002a \u0060",
  27. "A S D F G H J K L \u00c7 \u00aa \u005e {enter}",
  28. "{shift} \u003e Z X C V B N M \u003b \u003a \u005f {shift}",
  29. "{cancel} {space} {alt} {combo} {accept}"
  30. ],
  31. // AltGr
  32. 'alt' : [
  33. "\u005C 1 \u0040 \u00a3 \u00a7 \u20ac 6 \u007b \u005b \u005d \u007d \u0027 \u00ab {bksp}",
  34. "{tab} q w \u20ac r t y u i o p \u0308 \u00b4",
  35. "a s d f g h j k l \u00e7 \u00ba \u007e {enter}",
  36. "{shift} \u003c z x c v b n m \u002c \u002e \u002d {shift}",
  37. "{cancel} {space} {alt} {combo} {accept}"
  38. ],
  39. 'alt-shift' : [
  40. "\u007c \u0021 \u0022 \u0023 \u0024 \u0025 \u0026 \u002f \u0028 \u0029 \u003d \u003F \u00bb {bksp}",
  41. "{tab} Q W \u20ac R T Y U I O P \u0308 \u0060",
  42. "A S D F G H J K L \u00c7 \u00aa \u005e {enter}",
  43. "{shift} \u003e Z X C V B N M \u003b \u003a \u005f {shift}",
  44. "{cancel} {space} {alt} {combo} {accept}"
  45. ]
  46. };