Skip to content

rename-file-popover: fix key event state checking

Ghost User requested to merge (removed):rename-popover-undo into master

Currently, when checking if the user pressed ctrl-z, an equality check is used on the state to determine whether the ctrl key is pressed. That does not work, however, as there may be other modifier masks applied, be it internal GDK values or mapping of num lock to mod2.

That is fixed by using binary AND on the state with the relevant mask.

Closes #149 (closed).

Merge request reports