Skip to content

switch-apps Alt+Tab leaks Alt key #210

@schiorean

Description

@schiorean

Describe the bug
When [switch-apps] is enabled, the Alt+Tab leaks Alt key to the app that is swiched in the background. This is visible in apps that have an editor, like Notepad++ / PHPStorm that I both use.

To Reproduce

  1. Have 2 apps, Notepad++ and another one
  2. Edit in Notepad++
  3. Alt+Tab to switch the other app
  4. Note that the editor in np++ lost focus and now menu focused (because of Alt)
  5. Alt+Tab to switch back to np++
  6. The first keypress is lost because focus is not in the editor view anymore, but in menu.

Expected behavior
Alt+tab back and forth should keep the focus of the app exactly where was it.

Configuration



# Whether to show trayicon, yes/no
trayicon = yes

[switch-windows]

# Hotkey to switch windows
hotkey = alt+`

# List of hotkey conflict apps
# e.g. game1.exe,game2.exe
blacklist =

# Ignore minimal windows
ignore_minimal = no

# Switch to windows from only the current virtual desktops instead of all desktops.
# Defaults to match the Alt-Tab behavior of Windows:
# Settings > System > Multitasking > Virtual Desktops
only_current_desktop = auto

[switch-apps]

# Whether to enable switching apps
enable = yes

# Hotkey to switch apps
hotkey = alt+tab

# Ignore minimal windows
ignore_minimal = yes

# List of override icons, syntax: app1.exe=icon1.ico,app2.exe=icon2.png.
# The icon path can be a full path or a relative path to the app's directory.
# The icon format can be ico or png.
override_icons =

# Switch to apps from only the current virtual desktops instead of all desktops.
# Defaults to match the Alt-Tab behavior of Windows:
# Settings > System > Multitasking > Virtual Desktops
only_current_desktop = auto

[log]

# Log level can be one of off,error,warn,info,debug,trace.
level = info

# Log file path.
# e.g.
#   window-switcher.log (located in the same directory as window-switcher.exe)
#   C:\Users\sigod\AppData\Local\Temp\window-switcher.log (or used the full path)
path =

Log
No logs.

Screenshots/Media
No screenshots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions