keymap-inspector 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -429,7 +429,21 @@ class KeymapInspector {
429
429
 
430
430
  MIT © [mikyviz](https://github.com/MikyViz)
431
431
 
432
- ## 🤝 Contributing
432
+ ## Support
433
+
434
+ If you find this project helpful, consider [buying me a coffee](https://buymeacoffee.com/moosebro)!
435
+
436
+ ## Tests & Examples
437
+
438
+ For testing and development, check out the [tests/](./tests/) directory which contains:
439
+ - Interactive examples and demos
440
+ - Browser compatibility tests
441
+ - Development testing tools
442
+ - Sample implementations
443
+
444
+ See [tests/README.md](./tests/README.md) for detailed descriptions.
445
+
446
+ ## �🤝 Contributing
433
447
 
434
448
  Contributions are welcome! Please feel free to submit a Pull Request.
435
449
 
@@ -421,6 +421,14 @@
421
421
  // Global access for script tag usage
422
422
  if (typeof window !== 'undefined') {
423
423
  window.KeymapInspector = KeymapInspector;
424
+ // Добавляем раскладки прямо к KeymapInspector для браузера
425
+ KeymapInspector.en = en;
426
+ KeymapInspector.ru = ru;
427
+ KeymapInspector.de = de;
428
+ KeymapInspector.fr = fr;
429
+ KeymapInspector.es = es;
430
+ KeymapInspector.ua = ua;
431
+ KeymapInspector.he = he;
424
432
  window.KeymapLayouts = { en, ru, de, fr, es, ua, he };
425
433
  }
426
434
 
@@ -695,42 +695,42 @@ const he = {
695
695
  '0': { key: '0', code: 'Digit0', keyCode: 48 },
696
696
  '-': { key: '-', code: 'Minus', keyCode: 189 },
697
697
  '=': { key: '=', code: 'Equal', keyCode: 187 },
698
- // Второй ряд (иврит - справа налево, но клавиши в том же порядке)
699
- '/': { key: '/', code: 'KeyQ', keyCode: 81 }, // ק на Q
700
- "'": { key: "'", code: 'KeyW', keyCode: 87 }, // ר на W
701
- 'ק': { key: 'ק', code: 'KeyE', keyCode: 69 }, // א на E
702
- 'ר': { key: 'ר', code: 'KeyR', keyCode: 82 }, // ט на R
703
- 'א': { key: 'א', code: 'KeyT', keyCode: 84 }, // ו на T
704
- 'ט': { key: 'ט', code: 'KeyY', keyCode: 89 }, // ן на Y
705
- 'ו': { key: 'ו', code: 'KeyU', keyCode: 85 }, // ם на U
706
- 'ן': { key: 'ן', code: 'KeyI', keyCode: 73 }, // פ на I
707
- 'ם': { key: 'ם', code: 'KeyO', keyCode: 79 }, // ף на O
708
- 'פ': { key: 'פ', code: 'KeyP', keyCode: 80 }, // פ на P
698
+ // Второй ряд (QWERTYUIOP)
699
+ '/': { key: '/', code: 'KeyQ', keyCode: 81 }, // / на Q
700
+ "'": { key: "'", code: 'KeyW', keyCode: 87 }, // ' на W
701
+ 'ק': { key: 'ק', code: 'KeyE', keyCode: 69 }, // ק (Qof) на E
702
+ 'ר': { key: 'ר', code: 'KeyR', keyCode: 82 }, // ר (Resh) на R
703
+ 'א': { key: 'א', code: 'KeyT', keyCode: 84 }, // א (Alef) на T
704
+ 'ט': { key: 'ט', code: 'KeyY', keyCode: 89 }, // ט (Tet) на Y
705
+ 'ו': { key: 'ו', code: 'KeyU', keyCode: 85 }, // ו (Vav) на U
706
+ 'ן': { key: 'ן', code: 'KeyI', keyCode: 73 }, // ן (final Nun) на I
707
+ 'ם': { key: 'ם', code: 'KeyO', keyCode: 79 }, // ם (final Mem) на O
708
+ 'פ': { key: 'פ', code: 'KeyP', keyCode: 80 }, // פ (Pe) на P
709
709
  ']': { key: ']', code: 'BracketLeft', keyCode: 219 },
710
710
  '[': { key: '[', code: 'BracketRight', keyCode: 221 },
711
- // Третий ряд
712
- 'ש': { key: 'ש', code: 'KeyA', keyCode: 65 }, // ש на A
713
- 'ד': { key: 'ד', code: 'KeyS', keyCode: 83 }, // ד на S
714
- 'ג': { key: 'ג', code: 'KeyD', keyCode: 68 }, // ג на D
715
- 'כ': { key: 'כ', code: 'KeyF', keyCode: 70 }, // כ на F
716
- 'ע': { key: 'ע', code: 'KeyG', keyCode: 71 }, // ע на G
717
- 'י': { key: 'י', code: 'KeyH', keyCode: 72 }, // י на H
718
- 'ח': { key: 'ח', code: 'KeyJ', keyCode: 74 }, // ח на J
719
- 'ל': { key: 'ל', code: 'KeyK', keyCode: 75 }, // ל на K
720
- 'ך': { key: 'ך', code: 'KeyL', keyCode: 76 }, // ך на L
721
- 'ף': { key: 'ף', code: 'Semicolon', keyCode: 186 }, // ף на ;
711
+ // Третий ряд (ASDFGHJKL)
712
+ 'ש': { key: 'ש', code: 'KeyA', keyCode: 65 }, // ש (Shin) на A
713
+ 'ד': { key: 'ד', code: 'KeyS', keyCode: 83 }, // ד (Dalet) на S
714
+ 'ג': { key: 'ג', code: 'KeyD', keyCode: 68 }, // ג (Gimel) на D
715
+ 'כ': { key: 'כ', code: 'KeyF', keyCode: 70 }, // כ (Kaf) на F
716
+ 'ע': { key: 'ע', code: 'KeyG', keyCode: 71 }, // ע (Ayin) на G
717
+ 'י': { key: 'י', code: 'KeyH', keyCode: 72 }, // י (Yod) на H
718
+ 'ח': { key: 'ח', code: 'KeyJ', keyCode: 74 }, // ח (Het) на J
719
+ 'ל': { key: 'ל', code: 'KeyK', keyCode: 75 }, // ל (Lamed) на K
720
+ 'ך': { key: 'ך', code: 'KeyL', keyCode: 76 }, // ך (final Kaf) на L
721
+ 'ף': { key: 'ף', code: 'Semicolon', keyCode: 186 }, // ף (final Pe) на ;
722
722
  ',': { key: ',', code: 'Quote', keyCode: 222 },
723
723
  '\\': { key: '\\', code: 'Backslash', keyCode: 220 },
724
- // Четвертый ряд
725
- 'ז': { key: 'ז', code: 'KeyZ', keyCode: 90 }, // ז на Z
726
- 'ס': { key: 'ס', code: 'KeyX', keyCode: 88 }, // ס на X
727
- 'ב': { key: 'ב', code: 'KeyC', keyCode: 67 }, // ב на C
728
- 'ה': { key: 'ה', code: 'KeyV', keyCode: 86 }, // ה на V
729
- 'נ': { key: 'נ', code: 'KeyB', keyCode: 66 }, // נ на B
730
- 'מ': { key: 'מ', code: 'KeyN', keyCode: 78 }, // מ на N
731
- 'צ': { key: 'צ', code: 'KeyM', keyCode: 77 }, // צ на M
732
- 'ת': { key: 'ת', code: 'Comma', keyCode: 188 }, // ת на ,
733
- 'ץ': { key: 'ץ', code: 'Period', keyCode: 190 }, // ץ на .
724
+ // Четвертый ряд (ZXCVBNM)
725
+ 'ז': { key: 'ז', code: 'KeyZ', keyCode: 90 }, // ז (Zayin) на Z
726
+ 'ס': { key: 'ס', code: 'KeyX', keyCode: 88 }, // ס (Samekh) на X
727
+ 'ב': { key: 'ב', code: 'KeyC', keyCode: 67 }, // ב (Bet) на C
728
+ 'ה': { key: 'ה', code: 'KeyV', keyCode: 86 }, // ה (He) на V
729
+ 'נ': { key: 'נ', code: 'KeyB', keyCode: 66 }, // נ (Nun) на B
730
+ 'מ': { key: 'מ', code: 'KeyN', keyCode: 78 }, // מ (Mem) на N
731
+ 'צ': { key: 'צ', code: 'KeyM', keyCode: 77 }, // צ (Tsadi) на M
732
+ 'ת': { key: 'ת', code: 'Comma', keyCode: 188 }, // ת (Tav) на ,
733
+ 'ץ': { key: 'ץ', code: 'Period', keyCode: 190 }, // ץ (final Tsadi) на .
734
734
  '.': { key: '.', code: 'Slash', keyCode: 191 },
735
735
  // Символы с Shift (английские символы при нажатии Shift)
736
736
  '!': { key: '!', code: 'Digit1', keyCode: 49, shiftKey: true },