Code: Select all
control := ControlGetFocus("A")
controlName := ControlGetClassNN(control)
MsgBox(controlName)
However, if I use the Text tool on the canvas, Control displays as PSViewC34, which is the same as when not editing text.
How can I distinguish whether I am currently in the text editing mode under the Text tool?
My goal is to differentiate these text editing modes so that I can automatically switch back to English when text editing ends, to reduce issues with shortcut keys.
The functionality to switch input methods is almost complete. Now, I just need to distinguish the text editing mode.
Any one knows infomation of this? Thank you!