-
Michael Natterer authored
We cannot simply randomy move the focus from e.g. a text entry back to the canvas. Instead introduce global handling of "Escape" and a "primary_focus_widget" that is always set the the image window's active canvas. When Escape is pressed, move the focus to that primary focus widget, or beep if it is already there. Text widgets still get the key events before that logic and can consume the Escape. (cherry picked from commit 58806854)
53d083c8