Skip to content

Bug: Ctrl+Tab triggers navigation even if it disabled #8914

Closed

Description

@clmove1337

Version/Branch of Dear ImGui:

Version 1.92.2b (19222)

Back-ends:

imgui_impl_dx11.cpp + imgui_impl_win32.cpp

Compiler, OS:

Windows 10 + MSVC 2022

Full config/build information:

Dear ImGui 1.92.2b (19222)
--------------------------------
sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=199711
define: _WIN32
define: _WIN64
define: _MSC_VER=1944
define: _MSVC_LANG=202400
--------------------------------
io.BackendPlatformName: imgui_impl_win32
io.BackendRendererName: imgui_impl_dx11
io.ConfigFlags: 0x00000000
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigMemoryCompactTimer = 60.0
io.BackendFlags: 0x0000001E
 HasMouseCursors
 HasSetMousePos
 RendererHasVtxOffset
 RendererHasTextures
--------------------------------
io.Fonts: 1 fonts, Flags: 0x00000000, TexSize: 512,128
io.Fonts->FontLoaderName: FreeType
io.DisplaySize: 1264.00,761.00
io.DisplayFramebufferScale: 1.00,1.00
--------------------------------
style.WindowPadding: 8.00,8.00
style.WindowBorderSize: 1.00
style.FramePadding: 12.00,4.00
style.FrameRounding: 4.00
style.FrameBorderSize: 0.00
style.ItemSpacing: 8.00,4.00
style.ItemInnerSpacing: 6.00,4.00

Details:

CTRL+TAB works even if i disable navigation

Screenshots/Video:

Image

Minimal, Complete and Verifiable Example code:

auto &io = ImGui::GetIO( );
( void ) io;
io.ConfigFlags &= ~ImGuiConfigFlags_NavEnableKeyboard;
io.ConfigNavCaptureKeyboard = false;

Activity

  1. ocornut commented on Sep 3, 2025

    @ocornut
    Owner

    This is by design as outlined by #7987 and #4828, see specifically comment #7987 (comment) for disabling the shortcuts.

    Note that if your window uses the ImGuiWindowFlags_NoNavFocus it should be omitted from the focus list automatically so you don't need anything else done.

    There was a small bug if you have only 1 window and it is focused but has the ImGuiWindowFlags_NoNavFocus, the Ctrl+Tab window would appear empty, I have fixed this with 3766d40 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址