Tab switcher doesn't work in certain case
See original GitHub issueDescription
When user opens a couple of files by drag&drop them to a running CudaText window without any other file opened, tab switcher only starts to work after at least one manual tab switch by mouse.
Steps to reproduce
- Open CudaText.
- If program option ui_reopen_session is set to
true
, close all open files. Set option ui_tab_switcher_dialog tofalse
. Close CudaText. - Open CudaText. Now it should start with no files opened, only a tab named Untitled1 should be open.
- Select a couple of files (i.e. more than 1) in OS file manager and drag&drop them to the window of the running CudaText instance.
- The files will be loaded into tabs. The rightmost tab is the active one.
Expected behaviour
When pressing CTRL+TAB
the active tab should be switched to the first/leftmost tab. When pressing CTRL+SHIFT+TAB
the active tab should be switched to the tab left of the rightmost one.
Actual behaviour
Nothing happens, neither when pressing CTRL+TAB
nor when pressing CTRL+SHIFT+TAB
. The reason is that the CudaText window hasn’t got the input focus when drag&drop the files.
Desired behaviour
When drag&drop files from OS file manager to a CudaText window this window should get the input focus in order to make tab switcher start working immediatly.
Applies to
CudaText v1.83.0.0, tested with 64 bit version.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
I agree now, to fix…
Check that on pressing keys, Cud is focused.