Ctrl+Shift+Left in cm_EditPath leaves cursor at end of sel.
Moderators: Hacker, petermad, Stefan2, white
Ctrl+Shift+Left in cm_EditPath leaves cursor at end of sel.
When using Ctrl+Shift+Left in the cm_EditPath field, the cursor is left at the end of the selection instead of moving to the beginning of the selection as is customary (and logical).
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This has already been discussed 1000 times! Please use the search function before posting the same problem again and again. It's a Windows limitation, and there is no workaround.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Sorry.
Anyway, let me provide some input. It seems that if the edit control has the multi-line attribute set, the order of WPARAM and LPARAM to EM_SETSEL is respected (which it isn’t for some reason in a single-line edit control). I guess this could be used somehow, making sure to capture the Enter key to not add a new line to the edit control, but to accept the input.
Another solution would be to use a third-party edit control that isn’t as retarded as Microsofts…
Anyway, let me provide some input. It seems that if the edit control has the multi-line attribute set, the order of WPARAM and LPARAM to EM_SETSEL is respected (which it isn’t for some reason in a single-line edit control). I guess this could be used somehow, making sure to capture the Enter key to not add a new line to the edit control, but to accept the input.
Another solution would be to use a third-party edit control that isn’t as retarded as Microsofts…
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately the edit control of a combobox cannot be set to multi-line. 

Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com