09-14-2016, 10:14 AM
CORE text boxes and combo boxes leave the field open for editing after running its callback, which interferes with using keyboard commands for other AI functions. In Adobe's panels, e.g., the stroke weight combo box, the text loses focus when the user presses the Enter key, and also when a menu selection is made. I tried setting the widget's Contents-Changed callback so that a benign element such as a divider took the focus. This works when selecting an item from the popup menu (giving it a behavior like Adobe's). A lose-focus method for widgets would sure be nice. Is there a straightforward workaround for when a user presses Return or Enter? I noticed CADtools loses focus on Enter.