turkish.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* Turkish keyboard layouts
  2. * contains layout: 'turkish-q' & 'turkish-f'
  3. *
  4. * Contributor Baris Aydinoglu
  5. *
  6. * To use:
  7. * Point to this js file into your page header: <script src="layouts/turkish.js" type="text/javascript"></script>
  8. * Initialize the keyboard using: $('input').keyboard({ layout: 'turkish-q' });
  9. *
  10. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  11. */
  12. /* from http://ascii-table.com/keyboard.php/179 */
  13. jQuery.keyboard.layouts['turkish-q'] = {
  14. 'name' : 'turkish-q',
  15. 'lang' : ['tr'],
  16. 'normal' : [
  17. "\u0022 1 2 3 4 5 6 7 8 9 0 \u002a \u002d {bksp}",
  18. "{tab} q w e r t y u \u0131 o p \u011f \u00fc",
  19. "{lock} a s d f g h j k l \u015f \u0069 , {enter}",
  20. "{shift} < z x c v b n m \u00f6 \u00e7 . {shift}",
  21. "{accept} {alt} {space} {alt} {cancel}"
  22. ],
  23. 'shift' : [
  24. '\u00e9 ! \u0027 \u0302 + % & / ( ) = ? \u005f {bksp}',
  25. "{tab} Q W E R T Y U \u0049 O P \u011e \u00DC",
  26. "{lock} A S D F G H J K L \u015e \u0130 ; {enter}",
  27. "{shift} > Z X C V B N M \u00d6 \u00c7 : {shift}",
  28. "{accept} {alt} {space} {alt} {cancel}"
  29. ],
  30. 'alt' : [
  31. "\u0022 1 \u00a3 # $ \u00bd 6 { [ ] } \u005c \u002d {bksp}",
  32. "{tab} @ w \u20ac r t y u \u0131 o p \u0308 \u0303",
  33. "{lock} a s d f g h j k l \u0301 \u0069 \u0300 {enter}",
  34. "{shift} | z x c v b n m \u00f6 \u00e7 . {shift}",
  35. "{accept} {alt} {space} {alt} {cancel}"
  36. ]
  37. };
  38. /* from http://ascii-table.com/keyboard.php/440 */
  39. jQuery.keyboard.layouts['turkish-f'] = {
  40. 'name' : 'turkish-f',
  41. 'lang' : ['tr'],
  42. 'normal' : [
  43. "\u002B \u0031 \u0032 \u0033 \u0034 \u0035 \u0036 \u0037 \u0038 \u0039 \u0030 \u002F \u002D {bksp}",
  44. "{tab} \u0066 \u0067 \u011F \u0131 \u006F \u0064 \u0072 \u006E \u0068 \u0070 \u0071 \u0077",
  45. "{lock} \u0075 \u0069 \u0065 \u0061 \u00FC \u0074 \u006B \u006D \u006C \u0079 \u015F \u0078 {enter}",
  46. "{shift} \u003C \u006A \u00F6 \u0076 \u0063 \u00E7 \u007A \u0073 \u0062 \u002E \u002C {shift}",
  47. "{accept} {alt} {space} {alt} {cancel}"
  48. ],
  49. 'shift' : [
  50. "\u002A \u0021 \u0022 \u0302 \u0024 \u0025 \u0026 \u0027 \u0028 \u0029 \u003D \u003F \u005F {bksp}",
  51. "{tab} \u0046 \u0047 \u011E \u0049 \u004F \u0044 \u0052 \u004E \u0048 \u0050 \u0051 \u0057",
  52. "{lock} \u0055 \u0130 \u0045 \u0041 \u00DC \u0054 \u004B \u004D \u004C \u0059 \u015E \u0058 {enter}",
  53. "{shift} \u003E \u004A \u00D6 \u0056 \u0043 \u00C7 \u005A \u0053 \u0042 \u003A \u003B {shift}",
  54. "{accept} {alt} {space} {alt} {cancel}"
  55. ],
  56. 'alt' : [
  57. "\u00AC \u00B9 \u00B2 \u0023 \u00BC \u00BD \u00BE \u007B \u005B \u005D \u007D \u005C \u002D {bksp}",
  58. "{tab} \u0040 \u0067 \u011F \u0131 \u006F \u00A5 \u0072 \u006E \u0068 \u00A3 \u0308 \u0303",
  59. "{lock} \u0075 \u00DF \u20AC \u0061 \u00FC \u0074 \u006B \u006D \u006C \u0301 \u015F \u0300 {enter}",
  60. "{shift} \u007C \u00AB \u00BB \u0076 \u0063 \u00E7 \u007A \u0073 \u00D7 \u00F7 \u002C {shift}",
  61. "{accept} {alt} {space} {alt} {cancel}"
  62. ]
  63. };