Commit 432e16e
authored
fix: pattern editor find/replace. (#2686)
A recent commit broke the pattern editor popups for fin/replace and goto
line. The problem was cause by changes to the function that returns the
name of the currently focused subwindow using a function that only
updates when ImHex main window losses focus. The commit was aimed at
fixing evaluation of shortcuts in pattern data view and pattern editor
simultaneously but missed to fix some shortcuts like cut and paste.
The fix substitutes how the subwindow is first selected by using the
result of the subwindow selection used by imhex to insure that menus and
other ui components don't steal focus from views. The function that
returns the name of the current focused subwindow was changed to use
this value. This fixes both the window popups of pattern editor and all
the shortcut duplications.1 parent 8d691b2 commit 432e16e
File tree
2 files changed
+11
-21
lines changed- lib/libimhex/include/hex/ui
- plugins/builtin/source/content/views
2 files changed
+11
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | | - | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
Lines changed: 6 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
| |||
451 | 447 | | |
452 | 448 | | |
453 | 449 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
459 | 453 | | |
460 | 454 | | |
461 | 455 | | |
| |||
690 | 684 | | |
691 | 685 | | |
692 | 686 | | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
| 687 | + | |
697 | 688 | | |
698 | 689 | | |
699 | 690 | | |
| |||
1944 | 1935 | | |
1945 | 1936 | | |
1946 | 1937 | | |
1947 | | - | |
1948 | | - | |
1949 | 1938 | | |
1950 | | - | |
1951 | | - | |
| 1939 | + | |
1952 | 1940 | | |
1953 | 1941 | | |
1954 | 1942 | | |
1955 | 1943 | | |
1956 | 1944 | | |
1957 | 1945 | | |
| 1946 | + | |
1958 | 1947 | | |
1959 | 1948 | | |
1960 | 1949 | | |
| |||
0 commit comments