jimradford / superputty

The SuperPuTTY Window Manager for putty sessions

Home Page:https://www.facebook.com/superputty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FocusActiveSession is usually wrong when switching tabs with shortcuts

Tomas-M opened this issue · comments

I am using latest superputty release.
I have consifured shortcuts that Ctrl+PgUp goes to previous tab, Ctrl+PgDn goes to next tab.
Many times when I have multiple sessions open (using latest putty stable exe), I can properly switch between tabs with these shortcuts, but focus stays on one session and the newly activated tab does not get focus. This is terrible because I start typing and the text is typed to the inactive (no longer visible) tab.

I noticed that if I configure another shortcut, FocusActiveSession, for example to Ctrl+Space, then I can press this shortcut after switching to prevtab/nexttab and the focus is fixed, since that the focus is always correct after subsequent tab changes with ctrl+pgup and ctrl+pgdn.

Using Windows 10 Home version 22H2

I have been suffering this issue since the very beginning, as a temporary workaround you can use the "Switch Session" shortcut which is less handy but doesn't have the focus issue. Anyway, I think this issue should be a priority.

commented

I noticed that if I configure another shortcut, FocusActiveSession, for example to Ctrl+Space, then I can press this shortcut after switching to prevtab/nexttab and the focus is fixed, since that the focus is always correct after subsequent tab changes with ctrl+pgup and ctrl+pgdn.

Thanks @Tomas-M for this nice workaround :)
Focus bug already raised in 2022 in #880 but no answer since then :(
Using keyboard shortcut CtrlTab CtrlShiftTab MUST come with focus
@jimradford Could you give your opinion on this issue ?

I just started using SuperPutty and this is one of the very first things I noticed. I honestly can't think of any reason why the focus shouldn't be associated with the current active tab. Very surprising behavior.