mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
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.