Multi Commander > Support and Feedback
focus lost and copied item not selected when CTRL+C then CTRL+V
sickOfMS:
portable multicommander v6.0 build 2118 x64
win 8.1
select any file and just hit CTRL+C then CTRL+V
current tab/panel becomes inactive (lost focus) and selected file is unchanged (except it is blue-pale i.e. as selected file in inactive panel).
I would really like to have newly pasted file as selected and other files that were selected before copy-paste to become deselected.
It would be perfect if this could be an option in settings.
Mathias (Author):
Problem with Ctrl+C / Ctrl+V is that Windows Explorer is handling the copy.
MC sends the command to Windows to "paste" what it has in clipboard and then Windows do it stuff.. But sometimes Windows fells like it want to steal the focus.
And since this is happening in the background. MC does not know when the copy is done or what happen.
There are a lot of issues (limitations) with using cut / paste to copy files. How cut/ paste works in Windows is a really badly designed solution that still is the same as it was for Windows95. And it is so because of compability reasons..
sickOfMS:
Others do this. You can 'steal' focus again, use timer or thread. Copy is already launched in thread, I guess, so just refocus to your panel few milliseconds after start or when copy is finished select pasted files (keep list before starting).
I am guessing but there must be the way everybody else does it, no? (I just tried in freecommander XE and explorer++.
CTRL+C then CTRL+V then arrow-up (or down) on keyboard and selection changes ... i.e. focus is back on panel where I was.
Mathias (Author):
No, Sorry, Would not work, You can't steal focus from a process without that process already given you permission to do that.
( The problem is that the other fm you mention is build on top on WinExplorer shell and they are hook into the Windows Shell a another way)
if MC would not do so much threading and block UI instead, then it might have worked.
But just keep refreshing is no ide. MC does not know when the copy is finished. MC does not know if it was 1 file or 42 million
It have no idea when the copy is done. for MC it is a fire and forget action. "They Windows the stuff in the clipboard, try to paste them to this location. And also. check with all registered shell extension first if they want to handle them instead. Okey,.. Good.. bye"
sickOfMS:
Yes that was not really a good idea but ... here is another idea :)
Your panel auto-refreshes and redraws on each new item i.e. pasted file. So when you get that notification that there is a new item and you need to refresh the list then can't you do SetFocus to this where 'this' is your panel-list window? It's a child of your main app window so it should be fine ?
Navigation
[0] Message Index
[#] Next page
Go to full version