cryptum 0.0.263 → 0.0.264
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/event/scroll.rb +24 -4
- data/lib/cryptum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 131cbcaadd202ee2bdcc8f4e23067f6e2c632b7159007a308bcb288ed74748c7
|
4
|
+
data.tar.gz: 9fac19b924a5c594858c84878fef84f570830fcf199d8ceb918b0686537e0f8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bff9d226b9ac00ea28aa072903f107a9f1508e231c0abdc20aa05ce136d6778bb06d884b21ab6096ab0f90eb2f0033c2e7b9b12fa7a33b978134540151258e1
|
7
|
+
data.tar.gz: 2736aa7bca7479be8eda25942e24fedaf689ee4a4ffe99c92e50fe14b4086b4372fbd1a30e2abcf64814e8141f1e8b6b54842a2e13d9d7378b388b1a557c8fd6
|
data/lib/cryptum/event/scroll.rb
CHANGED
@@ -71,7 +71,19 @@ module Cryptum
|
|
71
71
|
terminal_win.key_press_event.key_esc = false
|
72
72
|
terminal_win.key_press_event.key_page_up = false
|
73
73
|
|
74
|
-
|
74
|
+
if event_history.order_plan_win_active
|
75
|
+
event_history.order_plan_row_to_select = 0
|
76
|
+
event_history.order_plan_index_offset -= event_history.order_plan_max_rows_to_display - 1
|
77
|
+
event_history.order_plan_index_offset = 0 if event_history.order_plan_index_offset.negative?
|
78
|
+
event_history.order_plan_row_to_select = 0 if event_history.order_plan_row_to_select.negative?
|
79
|
+
end
|
80
|
+
|
81
|
+
if event_history.order_execute_win_active
|
82
|
+
event_history.order_execute_row_to_select = 0
|
83
|
+
event_history.order_execute_index_offset -= event_history.order_execute_max_rows_to_display - 1
|
84
|
+
event_history.order_execute_index_offset = 0 if event_history.order_execute_index_offset.negative?
|
85
|
+
event_history.order_execute_row_to_select = 0 if event_history.order_execute_row_to_select.negative?
|
86
|
+
end
|
75
87
|
rescue StandardError => e
|
76
88
|
raise e
|
77
89
|
end
|
@@ -87,7 +99,17 @@ module Cryptum
|
|
87
99
|
terminal_win.key_press_event.key_esc = false
|
88
100
|
terminal_win.key_press_event.key_page_down = false
|
89
101
|
|
90
|
-
|
102
|
+
if event_history.order_plan_win_active
|
103
|
+
event_history.order_plan_row_to_select = 0
|
104
|
+
event_history.order_plan_index_offset += event_history.order_plan_max_rows_to_display + 1
|
105
|
+
event_history.order_plan_row_to_select = event_history.order_plan_max_rows_to_display if event_history.order_plan_row_to_select > event_history.order_plan_max_rows_to_display
|
106
|
+
end
|
107
|
+
|
108
|
+
if event_history.order_execute_win_active
|
109
|
+
event_history.order_execute_row_to_select = 0
|
110
|
+
event_history.order_execute_index_offset += event_history.order_execute_max_rows_to_display + 1
|
111
|
+
event_history.order_execute_row_to_select = event_history.order_execute_max_rows_to_display if event_history.order_execute_row_to_select > event_history.order_execute_max_rows_to_display
|
112
|
+
end
|
91
113
|
rescue StandardError => e
|
92
114
|
raise e
|
93
115
|
end
|
@@ -103,7 +125,6 @@ module Cryptum
|
|
103
125
|
terminal_win.key_press_event.key_esc = false
|
104
126
|
terminal_win.key_press_event.key_home = false
|
105
127
|
|
106
|
-
File.write('/tmp/key_home.DETECTED', nil)
|
107
128
|
rescue StandardError => e
|
108
129
|
raise e
|
109
130
|
end
|
@@ -119,7 +140,6 @@ module Cryptum
|
|
119
140
|
terminal_win.key_press_event.key_esc = false
|
120
141
|
terminal_win.key_press_event.key_end = false
|
121
142
|
|
122
|
-
File.write('/tmp/key_end.DETECTED', nil)
|
123
143
|
rescue StandardError => e
|
124
144
|
raise e
|
125
145
|
end
|
data/lib/cryptum/version.rb
CHANGED