File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,10 @@ bool ImGui::Initialize( const ImGui::Options& options )
557557 auto context = ImGui::CreateContext ();
558558
559559 ImGuiIO& io = ImGui::GetIO ();
560- if ( options.isKeyboardEnabled () ) io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls
560+ if ( options.isKeyboardEnabled () ) {
561+ io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls
562+ io.ConfigFlags |= ImGuiConfigFlags_NavNoCaptureKeyboard; // Don't capture keyboard when navigation is active
563+ }
561564 if ( options.isGamepadEnabled () ) io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls
562565 ci::app::WindowRef window = options.getWindow ();
563566 io.DisplaySize = ci::vec2 ( window->toPixels ( window->getSize () ) );
You can’t perform that action at this time.
0 commit comments