When you press F2 to edit a filename in Windows Shell, there is a limited set of editing keys that is understood – e.g. CTRL+Arrow Keys, Home, End, CTRL+X. For example, when you type CTRL+Right Arrow, the cursor will stop right after a dash, but will not stop at a period. Are these actions customizable, and if so, how?
Any additional information not directly related but which you feel might help the topic will also be appreciated.
You can set a custom word-break procedure for your edit control using
EM_SETWORDBREAKPROC;EditWordBreakProcis the corresponding callback function that the OS calls when it needs to find where a word break occurs.From the docs:
The key combinations themselves are not directly customizable, and for a good reason — so that the user experience is uniform across all applications. Of course, you could subclass the edit control and handle keyboard messages yourself but I guess that’s not the point here.