romanian.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Romanian keyboard layouts
  2. * contains layout: Romanian National Standard SR 13392:2004
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/romanian.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'romanian' });
  7. *
  8. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  9. */
  10. /* based on http://en.wikipedia.org/wiki/Romanian_keyboard_layout for the actual (standard) layout.
  11. More details http://www.microsoft.com/resources/msdn/goglobal/keyboards/kbdrost.html and http://ascii-table.com/keyboard.php/446 (for the actual codes)*/
  12. /* Submitted July 2014 - Alex Florea <alecz.fia@gmail.com>*/
  13. jQuery.keyboard.layouts['romanian'] = {
  14. 'normal' : [
  15. "\u201e 1 2 3 4 5 6 7 8 9 0 \u002d \u003d {bksp}",
  16. "{tab} q w e r t y u i o p \u0103 \u00ee \u00e2",
  17. "a s d f g h j k l \u0219 \u021b {enter}",
  18. "{shift} \u005c z x c v b n m \u002c \u002e \u002f {shift}",
  19. "{accept} {alt} {space} {alt} {cancel}"
  20. ],
  21. 'shift' : [
  22. "\u201d \u0021 \u0040 \u0023 \u0024 \u0025 \u005e \u0026 \u002a \u0028 \u0029 \u005f \u002b {bksp}",
  23. "{tab} Q W E R T Y U I O P \u0102 \u00ce \u00c2",
  24. "A S D F G H J K L \u0218 \u021a {enter}",
  25. "{shift} \u007c Z X C V B N M \u003b \u003a ? {shift}",
  26. "{accept} {alt} {space} {alt} {cancel}"
  27. ],
  28. 'alt' : [
  29. "\u0060 \u0303 \u030c \u0302 \u0306 \u030a \u0328 \u0300 \u0307 \u0301 \u030b \u0308 \u0327 {bksp}",
  30. "{tab} a z \u20ac r t y u i o p \u007b \u007d \u005c",
  31. "a \u00df \u0111 f g h j k \u0142 \u003b \u0027 {enter}",
  32. "{shift} \u005c z x \u00a9 v b n m \u003c \u003e \u002f {shift}",
  33. "{accept} {alt} {space} {alt} {cancel}"
  34. ],
  35. 'alt-shift' : [
  36. "\u007e 1 2 3 4 5 6 7 8 9 0 \u2013 \u00b1 {bksp}",
  37. "{tab} q w e r t y u i o p \u007b \u007d \u007c",
  38. "a s \u0110 f g h j k \u0141 \u003a \u0022 {enter}",
  39. "{shift} \u005c z x c v b n m \u00ab \u00bb \u002f {shift}",
  40. "{accept} {alt} {space} {alt} {cancel}"
  41. ],
  42. };