"Cycle Tabs Forward/Backward" can fail if folder with a large number of files is loading
Posted: 27 Dec 2021 09:39
I am using the "Cycle Tabs *ward" keyboard shortcuts and they can fail while loading certain folders. It seems to be that something involved in loading folder contents is a blocking action for certain keyboard shortcut methods. I can't definitely say what the conditions are, but this happens in my Temp folder (C:\Users\*\AppData\Local\Temp) which has 3483 files in it. Everything is generally laggy in this folder, unsurprisingly. But it's odd that the shortcut doesn't work at all for a few seconds after viewing the folder. It's not that it just takes longer for the hotkey callback to execute; I hit the hotkey and nothing happens. After viewing the folder, if I wait for like 10 seconds, then the hotkeys will work.
Actually, the "Cycle Tabs Backward" starts working after about 10 seconds, while "Cycle Tabs Forward" starts working after about 1-2 seconds. Moreover, if I hit the keyboard shortcut very quickly after viewing the folder (say I keyboard shortcut into a tab that already has the Temp folder open, then rapidly hit the keyboard shortcut again, before the folder contents have begun to load) it will work just fine. So, for the first few hundred milliseconds, keyboard shortcut works. But then something about folder content loading begins, which blocks the keyboard shortcut for 1-10 seconds (depending on the shortcut), then whatever was blocking finishes and the keyboard shortcut works again.
Ideally, rather than this loading blocking the shortcuts, the shortcuts should bail out of the loading. I don't know anything about the source code of course, can't give much less abstract information.
Actually, the "Cycle Tabs Backward" starts working after about 10 seconds, while "Cycle Tabs Forward" starts working after about 1-2 seconds. Moreover, if I hit the keyboard shortcut very quickly after viewing the folder (say I keyboard shortcut into a tab that already has the Temp folder open, then rapidly hit the keyboard shortcut again, before the folder contents have begun to load) it will work just fine. So, for the first few hundred milliseconds, keyboard shortcut works. But then something about folder content loading begins, which blocks the keyboard shortcut for 1-10 seconds (depending on the shortcut), then whatever was blocking finishes and the keyboard shortcut works again.
Ideally, rather than this loading blocking the shortcuts, the shortcuts should bail out of the loading. I don't know anything about the source code of course, can't give much less abstract information.