diff --git a/CHANGES.md b/CHANGES.md index a1b9867c7..541b6e1b6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -127,6 +127,7 @@ - Selected color affects all of them [Taiga #5285](https://tree.taiga.io/project/penpot/issue/5285) - Fix problem with shadow negative spread [Github #3421](https://github.com/penpot/penpot/issues/3421) - Fix problem with linked colors to strokes [Github #3522](https://github.com/penpot/penpot/issues/3522) +- Fix problem with hand tool stuck [Github #3318](https://github.com/penpot/penpot/issues/3318) ## 1.19.5 diff --git a/frontend/src/app/main/streams.cljs b/frontend/src/app/main/streams.cljs index 4fc3d970d..d6ebf074b 100644 --- a/frontend/src/app/main/streams.cljs +++ b/frontend/src/app/main/streams.cljs @@ -151,6 +151,11 @@ (rx/filter kbd/space?) (rx/filter (complement kbd/editing-event?)) (rx/map kbd/key-down-event?) + ;; Fix a situation caused by using `ctrl+alt` kind of + ;; shortcuts, that makes keyboard-alt stream + ;; registering the key pressed but on blurring the + ;; window (unfocus) the key down is never arrived. + (rx/merge window-blur) (rx/pipe (rxo/distinct-contiguous)))] (rx/sub! ob sub) sub))