-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Disable Alt key to toggle Nav Menu Layer #3560
Comments
This problem is even more pronounced with the German (and probably other) keyboard layouts. On the German layout several input characters are mapped to AltGr+other key, e.g. "[" is input using AltGr+8. When I use any text input widgets be them one line text input or editors, each time someone enters one of these symbols the focus jumps, making it very clunky to enter text containing these symbols. I think that the proper solution would be to only do the menu action, when no other key has been pressed between down and up of the alt or altgr key. |
Is there still no way of disabling this without changing ImGui itself?... |
I ran into the same issue, because I need to ALT for a snap modifier key while dragging controls. (SHIFT and CTRL are already used for other purposes). For me it's not a show stopper, though. |
Same issue over here, for use with additional cursor controls for a 3D map editor. Would be really nice to have this be optional. |
As a temporary workaround, when your application handles ALT key you may set |
Based on the solution seen in ocornut/imgui#3560 Co-Authored-By: gerard-queralt <79362519+gerard-queralt@users.noreply.github.com>
I have forgotten to post here when releasing 1.89 in November, as well as forgetting to tag this specific post in my myriad of commits related to input ownership system. But this should now be solved. Many of the API are still in imgui_internal.h and therefore have no demo, but the The variety of options and how they can be used are quite subtle and complex. Generally you need some form of conditional to not just steal the Alt mod key globally But TL;DR; as per your statement above:
If you want Alt to be conditionally disabled at the time of its press or hold you can also do that. (Linking to #2637, #2620, #2891, #3370, #3724, #4828, #5108, #5242, #5641 for related features) |
Version/Branch of Dear ImGui
Version: 1.79 WIP (17803)
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_win32.cpp + imgui_impl_dx11.cpp
Compiler: MSVC
Operating System: Win7 64-bit & Win10 64-bit
My Issue/Question:
Is there any way to disable the "Press and release ALT to toggle menu behavior"? As I use ALT for commands in my text editor
The code I found relevant to this is this snippet:
Setting that apply_toggle_layer to false fixes my issue but ideally I don't want to touch any of this code.
Thanks for any pointers!
The text was updated successfully, but these errors were encountered: