parameters: (self, evt)
docstring: Get the currently entered command string and execute it.
          @postcondition: ctrl is cleared and command is executed
docstring_summary: Get the currently entered command string and execute it.
          @postcondition: ctrl is cleared and command is executed
docstring_tokens: Get the currently entered command string and execute it . @postcondition : ctrl is cleared and command is executed
function: def OnEnter(self, evt):
          """Get the currently entered command string and execute it.
          @postcondition: ctrl is cleared and command is executed
  
          """
          if self._popup.HasSuggestions() and self._popup.HasSelection():
              psel = self._popup.GetSelection()
              if self.GetValue().split(' ', 1)[-1].strip() != psel:
                  self._AdjustValue(psel)
                  self._popup.Hide()
                  return
  
          cmd = self.GetValue()
          self.Clear()
          self.ExecuteCommand(cmd)
          if self._popup.IsShown():
              self._popup.Hide()
function_tokens: def OnEnter ( self , evt ) : if self . _popup . HasSuggestions ( ) and self . _popup . HasSelection ( ) : psel = self . _popup . GetSelection ( ) if self . GetValue ( ) . split ( ' ' , 1 ) [ - 1 ] . strip ( ) != psel : self . _AdjustValue ( psel ) self . _popup . Hide ( ) return cmd = self . GetValue ( ) self . Clear ( ) self . ExecuteCommand ( cmd ) if self . _popup . IsShown ( ) : self . _popup . Hide ( )