german.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* German keyboard layouts
  2. * contains layout: 'german-qwertz-1' & 'german-qwertz-2'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/german.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'german-qwertz-1' });
  7. *
  8. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  9. */
  10. /* from http://ascii-table.com/keyboard.php/129 */
  11. jQuery.keyboard.layouts['german-qwertz-1'] = {
  12. 'name' : 'german-qwertz-1',
  13. 'lang' : ['de'],
  14. 'normal' : [
  15. "\u0302 1 2 3 4 5 6 7 8 9 0 \u00df \u0301 {bksp}",
  16. "{tab} q w e r t z u i o p \u00fc +",
  17. "a s d f g h j k l \u00f6 \u00e4 # {enter}",
  18. "{shift} < y x c v b n m , . - {shift}",
  19. "{accept} {alt} {space} {alt} {cancel}"
  20. ],
  21. 'shift' : [
  22. '\u00b0 ! " \u00a7 $ % & / ( ) = ? \u0300 {bksp}',
  23. "{tab} Q W E R T Z U I O P \u00dc *",
  24. "A S D F G H J K L \u00d6 \u00c4 ' {enter}",
  25. "{shift} > Y X C V B N M ; : _ {shift}",
  26. "{accept} {alt} {space} {alt} {cancel}"
  27. ],
  28. 'alt' : [
  29. '\u0302 1 \u00b2 \u00b3 4 5 6 { [ ] } \\ \u0301 {bksp}',
  30. "{tab} @ w \u20ac r t z u i o p \u00fc \u0303",
  31. "a s d f g h j k l \u00f6 \u00e4 # {enter}",
  32. "{shift} \u007c y x c v b n \u00b5 , . - {shift}",
  33. "{accept} {alt} {space} {alt} {cancel}"
  34. ]
  35. };
  36. /* from http://ascii-table.com/keyboard.php/150G-1 */
  37. jQuery.keyboard.layouts['german-qwertz-2'] = {
  38. 'name' : 'german-qwertz-2',
  39. 'lang' : ['de'],
  40. 'normal' : [
  41. "\u00a7 1 2 3 4 5 6 7 8 9 0 ' \u0302 {bksp}",
  42. "{tab} q w e r t z u i o p \u00fc \u0308",
  43. "a s d f g h j k l \u00f6 \u00e4 $ {enter}",
  44. "{shift} < y x c v b n m , . - {shift}",
  45. "{accept} {alt} {space} {alt} {cancel}"
  46. ],
  47. 'shift' : [
  48. '\u00b0 + " * \u00e7 % & / ( ) = ? \u0300 {bksp}',
  49. "{tab} Q W E R T Z U I O P \u00e8 !",
  50. "A S D F G H J K L \u00e9 \u00e0 \u00a3 {enter}",
  51. "{shift} > Y X C V B N M ; : _ {shift}",
  52. "{accept} {alt} {space} {alt} {cancel}"
  53. ],
  54. 'alt' : [
  55. "\u00a7 \u007c @ # 4 5 \u00ac \u00a6 \u00a2 9 0 \u0301 \u0303 {bksp}",
  56. "{tab} q w \u20ac r t z u i o p [ ]",
  57. "a s d f g h j k l \u00f6 { } {enter}",
  58. "{shift} \\ y x c v b n m , . - {shift}",
  59. "{accept} {alt} {space} {alt} {cancel}"
  60. ]
  61. };