Best way to shortcut enter in string gadgets?
Posted: Sat Sep 06, 2003 12:27 am
				
				Since I need the enter key to function normally in editor gadgets and stuff I cannot use AddKeyboardShortcut() 
Is this the best way to handle detecting enter being pressed in a string gadget?
			Is this the best way to handle detecting enter being pressed in a string gadget?
Code: Select all
          
        Select MyEventID
          
          Case #WM_KEYDOWN
            
            If EventwParam() = 13
            
              Select EventGadgetID()
              
                Case #String_Gadget_Here
                
                  Debug "Return key pressed in string gadget"
                  
              EndSelect
            EndIf
         EndSelect