superputty icon indicating copy to clipboard operation
superputty copied to clipboard

FocusActiveSession is usually wrong when switching tabs with shortcuts

Open Tomas-M opened this issue 1 year ago • 3 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

Tomas-M avatar Jan 19 '24 08:01 Tomas-M

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.

luisbunuel avatar Feb 06 '24 10:02 luisbunuel

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 https://github.com/jimradford/superputty/issues/880 but no answer since then :( Using keyboard shortcut CtrlTab CtrlShiftTab MUST come with focus @jimradford Could you give your opinion on this issue ?

rex-banner avatar Feb 07 '24 10:02 rex-banner

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.

sdturne avatar Mar 07 '24 17:03 sdturne