keyboard_map 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73f42043d059844447e80fadb95e205f0322d878d6916adb150bb884422b9ea6
4
- data.tar.gz: 116ca240612ee19ceb90b8541364cae3fba201998c9cff9a74688959b8c2037d
3
+ metadata.gz: ad97855210bbcfc5569c0e179eccd55e03429b114b148c5222dede98f06d9a44
4
+ data.tar.gz: d604867d99759803d8c1dedda23ac64f328f51a538015655e661db286f6cb5b7
5
5
  SHA512:
6
- metadata.gz: a95f1a9d85e9ee5313f2251801c64bf026f21b7fd5c2f18ba4f4627481c311b0f63bbfdbfe51db6b66b770ca154dcdc2dc6eff872dfb7e0ffc24f3b0adde1777
7
- data.tar.gz: be940b88650dd017a2bdb66b86e7c6f6e6b326830572c60249e4c00f0d3f393d7e5b3aa6e570df997ee077c37e7e138de9d2e3a30306497c6b65ecf4ed054632
6
+ metadata.gz: 8bcdbdd51c0696d7622c8e6bb2ffb189db619c4e72d45b5019773908949750413322d6c695a89b7352e0dff715942d7d8b8816d841b7c59489f40f0fb3662858
7
+ data.tar.gz: 822319cc6e5c2596d4ec04d86af0d14de91dc32a9a2142dccf8928454fb276c395bd918eb1ed026a0f362d908587468d16b9cb3bfeebd8645279d57716672012
@@ -1,3 +1,3 @@
1
1
  class KeyboardMap
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/keyboard_map.rb CHANGED
@@ -49,16 +49,19 @@ class KeyboardMap
49
49
  "E" => :keypad_5,
50
50
  "F" => :end,
51
51
  "H" => :home,
52
- "P" => :f1,
52
+ "J" => :ctrl_end, # st reports this
53
+ "L" => :ctrl_insert, # st reports this
54
+ "P" => :delete,
53
55
  "Q" => :f2,
54
56
  "R" => :f3,
55
- "S" => :f4,
57
+ "S" => :f4
56
58
  }.freeze
57
59
 
58
60
  # \e[{parameter1}{;...}~ from parameter1 => key
59
61
  CSI_TILDE_MAP = {
60
62
  "2" => :insert,
61
63
  "3" => :delete,
64
+ "4" => :end, # st reports this
62
65
  "5" => :page_up,
63
66
  "6" => :page_down,
64
67
  "11" => :f1,
@@ -92,7 +95,9 @@ class KeyboardMap
92
95
  "\eOP" => :f1,
93
96
  "\eOQ" => :f2,
94
97
  "\eOR" => :f3,
95
- "\eOS" => :f4
98
+ "\eOS" => :f4,
99
+ "\e[M" => event(:delete,:ctrl), # st reports this
100
+ "\e[4h" => :insert # st reports this
96
101
  }.freeze
97
102
 
98
103
  CSI_FINAL_BYTE = 0x40..0x7e
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keyboard_map
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vidar Hokstad
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-11 00:00:00.000000000 Z
11
+ date: 2022-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler