Hot Door CORE Forum
AI tool shortcuts stealing text field's keystrokes - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5)
+--- Thread: AI tool shortcuts stealing text field's keystrokes (/showthread.php?tid=313)



AI tool shortcuts stealing text field's keystrokes - Rick Johnson - 04-18-2022

I have a project with dozens of text fields, but only one of them is somehow problematic in a very strange way.

The text field has a label that, when clicked, selects the text field.

     labl.setTextField(this->xformExtrudeFld);

If the first character I type is also a shortcut for a tool, nothing happens (neither is a tool selected). All other characters are accepted normally except for Delete and Backspace, which also do nothing when they're the first key pressed.

I set a valueChanging callback for the text field and verified that it did not receive notice of the "stolen" key press.

Next I set a click callback for the label that explicitly set the focus to the text field. Again, focus is successfully set and the text field's text is selected, but the next character typed won't be recognized if it's used for a tool shortcut.

If I click in a field and then type, all characters are received normally.

I wish I could recreate this error in the Skeleton project, but it only happens in one text field in one panel, out of perhaps a hundred text fields in my various plugins.

Any thoughts on a possible workaround, or a test I could possibly do to narrow down the problem?