Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: issue of handling an Alt + Click combination in the Room Editor #2565

Open
ivan-mogilko opened this issue Nov 1, 2024 · 0 comments
Labels
context: ui/ux type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor

Comments

@ivan-mogilko
Copy link
Contributor

This is more of a question than a bug report, because although I know the most straightforward way to fix this, I am not certain if it's a proper one.

I've added a Alt + LMB combination to the Room Editor recently (b4a5886), but I later realized that when Alt is released, the focus goes to the system menu, as a standard window behavior (regardless of whether you made a click or not). Note this does not mean that the system menu opens, it only gets focus, but opens if you press any directional keys. So for most time you may not notice this. But this is not good anyway, and it makes cursor to change to standard "arrow", as focused control have changed.

This may be fixed easily by marking Alt key release as "handled" in a BaseAreasEditorFilter.KeyReleased method.

However, if we do that unconditionally, that will in turn prevent from actually calling a system menu while room editor has any Area mode enabled.

Then, we may handle Alt release in case user made a click while holding it, thus issuing an actual selection command (this fact may be saved and used on Alt release). This seems more suitable.

But there's my doubt: I've made a cursor change to "select" while Alt is held down. If focus still goes to system menu after user decided NOT to click, will this look wrong?

I suppose this is also a question of UI design. How do other applications treat a similar situation?

@ivan-mogilko ivan-mogilko added type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor context: ui/ux labels Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context: ui/ux type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor
Projects
None yet
Development

No branches or pull requests

1 participant