getavalon / core

The safe post-production pipeline - https://getavalon.github.io/2.0
MIT License
213 stars 48 forks source link

Avoid keyPress event interfering other widgets #529

Closed davidlatwe closed 4 years ago

davidlatwe commented 4 years ago

Motivation

While using arrow keys to navigate tree view or other widgets, key press event often leaks from current focused widget and interfering other Apps. In Maya for example, it accidently performing Maya commands like pickwalking in outliner.

Solution

Overriding main window's keyPressEvent.

Before

73d9704e-5bb1-4259-a877-dd583efd598d

After

396b436b-1739-4b36-836b-eca46e257e30

tokejepsen commented 4 years ago

Nice work!