hungarian.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* hungarian keyboard layouts
  2. * file codepage: this file use utf8 without bom, non ansi
  3. * contains layout: 'hungarian-qwertz-1' & 'hungarian-qwertz-2'
  4. *
  5. * To use:
  6. * Point to this js file into your page header: <script src="layouts/hungarian.js" type="text/javascript"></script>
  7. * Initialize the keyboard using: $('input').keyboard({ layout: 'hungarian-qwerty-2' });
  8. *
  9. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  10. */
  11. /* qwertz by Tóth Gergely (https://github.com/tgely) - */
  12. jQuery.keyboard.layouts['hungarian-qwertz-1'] = {
  13. 'name' : 'hungarian-qwertz-1',
  14. 'lang' : ['hu'],
  15. "default" : [
  16. "0 1 2 3 4 5 6 7 8 9 \u00f6 \u00fc \u00f3 \u0171 {bksp}",
  17. "{tab} q w e r t z u i o p \u0151 \u00fa",
  18. "a s d f g h j k l \u00e9 \u00e1 {enter}",
  19. "{shift} \u00ed y x c v b n m , . - {shift}",
  20. "{accept} {alt} {space} {alt} {cancel}"
  21. ],
  22. "shift" : [
  23. "\u00a7 ' \" + ! % / = ( ) \u00d6 \u00dc \u00d3 \u0170 {bksp}",
  24. "{tab} Q W E R T Z U I O P \u0150 \u00da",
  25. "A S D F G H J K L \u00c9 \u00c1 {enter}",
  26. "{shift} \u00cd Y X C V B N M ; : _ {shift}",
  27. "{accept} {alt} {space} {alt} {cancel}"
  28. ],
  29. "alt" : [
  30. "{sp:1} ~ \u02c7 ^ \u02d8 \u00b0 \u02db ` \u02d9 \u00b4 \u02dd \u00a8 \u00b8 \u00a4 {bksp}",
  31. "{tab} \\ | \u00c4 {sp:1} {sp:1} {sp:1} \u20ac \u00cd {sp:1} {sp:1} \u00f7 \u00d7",
  32. "\u00e4 \u0111 \u0110 [ ] {sp:1} \u00ed \u0142 \u0141 $ \u00df {enter}",
  33. "{shift} < > # & @ { } < ; > * {shift}",
  34. "{accept} {alt} {space} {alt} {cancel}"
  35. ]
  36. };
  37. jQuery.keyboard.layouts['hungarian-qwertz-2'] = {
  38. 'name' : 'hungarian-qwertz-2',
  39. 'lang' : ['hu'],
  40. "default" : [
  41. "0 1 2 3 4 5 6 7 8 9 \u00f6 \u00fc \u00f3 {bksp}",
  42. "{tab} q w e r t z u i o p \u0151 \u00fa",
  43. "a s d f g h j k l \u00e9 \u00e1 \u0171 {enter}",
  44. "{shift} \u00ed y x c v b n m , . - {shift}",
  45. "{accept} {alt} {space} {alt} {cancel}"
  46. ],
  47. "shift" : [
  48. "\u00a7 ' \" + ! % / = ( ) \u00d6 \u00dc \u00d3 {bksp}",
  49. "{tab} Q W E R T Z U I O P \u0150 \u00da",
  50. "A S D F G H J K L \u00c9 \u00c1 \u0170 {enter}",
  51. "{shift} \u00cd Y X C V B N M ; : _ {shift}",
  52. "{accept} {alt} {space} {alt} {cancel}"
  53. ],
  54. "alt" : [
  55. "{sp:1} ~ \u02c7 ^ \u02d8 \u00b0 \u02db ` \u02d9 \u00b4 \u02dd \u00a8 \u00b8 {bksp}",
  56. "{tab} \\ | \u00c4 {sp:1} {sp:1} {sp:1} \u20ac \u00cd {sp:1} {sp:1} \u00f7 \u00d7",
  57. "\u00e4 \u0111 \u0110 [ ] {sp:1} \u00ed \u0142 \u0141 $ \u00df \u00a4 {enter}",
  58. "{shift} < > # & @ { } < ; > * {shift}",
  59. "{accept} {alt} {space} {alt} {cancel}"
  60. ]
  61. };