swedish.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Swedish keyboard layouts
  2. * contains layout: 'swedish-qwerty' & 'swedish-dvorak'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/scandinavian.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'swedish-qwerty' });
  7. *
  8. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  9. */
  10. /* qwerty by Mika Perreri Korhonen (https://github.com/jouk0) - */
  11. jQuery.keyboard.layouts['swedish-qwerty'] = {
  12. 'name' : 'swedish-qwerty',
  13. 'lang' : ['sv'],
  14. 'normal' : [
  15. "\u00a7 1 2 3 4 5 6 7 8 9 0 + \u0301 {bksp}",
  16. "{tab} q w e r t y u i o p \u00e5 \u0308",
  17. "a s d f g h j k l \u00f6 \u00e4 ' {enter}",
  18. "{shift} < z x c v b n m , . - {shift}",
  19. "{accept} {alt} {space} {alt} {cancel}"
  20. ],
  21. 'shift' : [
  22. '\u00bd ! " # \u00a4 % & / ( ) = ? \u0300 {bksp}',
  23. "{tab} Q W E R T Y U I O P \u00c5 \u0302",
  24. "A S D F G H J K L \u00d6 \u00c4 * {enter}",
  25. "{shift} > Z X C V B N M ; : _ {shift}",
  26. "{accept} {alt} {space} {alt} {cancel}"
  27. ],
  28. 'alt' : [
  29. '\u00a7 1 @ \u00a3 $ 5 6 { [ ] } \\ \u0301 {bksp}',
  30. '{tab} q w € r t y u i o p \u00e5 \u0303',
  31. "a s d f g h j k l \u00f6 \u00e4 ' {enter}",
  32. '{shift} | z x c v b n \u00b5 , . - {shift}',
  33. '{accept} {alt} {space} {alt} {cancel}'
  34. ]
  35. };
  36. /* dvorak - from http://www.ludd.luth.se/~torger/se_dvorak.html */
  37. jQuery.keyboard.layouts['swedish-dvorak'] = {
  38. 'name' : 'swedish-qwerty',
  39. 'lang' : ['sv'],
  40. 'normal' : [
  41. "\u00a7 1 2 3 4 5 6 7 8 9 0 + \u0301 {bksp}",
  42. "{tab} \u00f6 \u00e5 \u00e4 p y f g c r l q \u00a8",
  43. "a o e u i d h t n s - < {enter}",
  44. "{shift} ' , . j k x b m w v z {shift}",
  45. "{accept} {alt} {space} {alt} {cancel}"
  46. ],
  47. 'shift' : [
  48. '\u00bd ! " # \u00a4 % & / ( ) = ? ` {bksp}',
  49. "{tab} \u00d6 \u00c5 \u00c4 P Y F G C R L Q ^",
  50. "A O E U I D H T N S _ > {enter}",
  51. "{shift} * ; : J K X B M W V Z {shift}",
  52. "{accept} {alt} {space} {alt} {cancel}"
  53. ],
  54. 'alt' : [
  55. "\u00a7 1 @ \u00a3 $ 5 6 { [ ] } \\ \u00b4 {bksp}",
  56. "{tab} \u00f6 \u00e5 \u00e4 p y f g c r l q ~",
  57. "a o e u i d h t n s - | {enter}",
  58. "{shift} ' , . j k x b m w v z {shift}",
  59. "{accept} {alt} {space} {alt} {cancel}"
  60. ]
  61. };