Bug 461739 - Switching away from Dolphin window while renaming from shortcut makes focus to leave current item
Summary: Switching away from Dolphin window while renaming from shortcut makes focus t...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.08.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-12 18:58 UTC by tustamido
Modified: 2022-11-12 19:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tustamido 2022-11-12 18:58:02 UTC
STEPS TO REPRODUCE
1. Press F2 or the other shortcut you have assigned to rename selected item (file or folder).
2. Switch focus away from Dolphin by clicking over other window or pressing Alt+Tab (supposing that's your shortcut to select a different window).
3. Switch focus back to Dolphin without directly clicking its window, so press Alt+Tab instead or use the desktop panel.

OBSERVED RESULT

The focused element will be current tab (you can see it outlined) i.e. if you press side arrow keys you'll activate a different tab (assuming there's more than one open in current Dolphin window).

EXPECTED RESULT

Focus should remain on selected item (file/folder) so that arrow keys should select previous/next item.

Note: from my experience, the result is very different if you triggered Rename by using context-menu item. That way the renaming process doesn't end when you select a different window, so this bug doesn't happen. This bug only happens when I trigger Rename by pressing the shortcut (F2). 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Wayland