Does anyone know how to tell if the user pressed enter, or is holding shift while a textfield is active?
I want a user to be able to type a number into a textfield and recalculate the final image if they press enter at that time.
And I need to know if shift is being held down because if the textfield is active and the user clicks on the preview pane with the mouse, then the preview pane should zoom in.
Right now I have the shift thing sort of working by making the window the actgive gadget if any gadget other than the textfields are clicked, and that works okay, but it's kind of kludgy to have to check to see if any gadget other than a textfield is clicked and reset the window to being active just to see if the user is holding shift.
I want a user to be able to type a number into a textfield and recalculate the final image if they press enter at that time.
And I need to know if shift is being held down because if the textfield is active and the user clicks on the preview pane with the mouse, then the preview pane should zoom in.
Right now I have the shift thing sort of working by making the window the actgive gadget if any gadget other than the textfields are clicked, and that works okay, but it's kind of kludgy to have to check to see if any gadget other than a textfield is clicked and reset the window to being active just to see if the user is holding shift.