original_docstring: Handle a new partial keypress.
docstring: Handle a new partial keypress.
docstring_tokens: Handle a new partial keypress .
code: def handle_partial_key(self, keystr: str) -> None:
          """Handle a new partial keypress."""
          if self._context is None:
              log.hints.debug("Got key without context!")
              return
          log.hints.debug("Handling new keystring: '{}'".format(keystr))
          for string, label in self._context.labels.items():
              try:
                  if string.startswith(keystr):
                      matched = string[:len(keystr)]
                      rest = string[len(keystr):]
                      label.update_text(matched, rest)
                      # Show label again if it was hidden before
                      label.show()
                  else:
                      # element doesn't match anymore -> hide it, unless in rapid
                      # mode and hide_unmatched_rapid_hints is false (see #1799)
                      if (not self._context.rapid or
                              config.val.hints.hide_unmatched_rapid_hints):
                          label.hide()
              except webelem.Error:
                  pass
          self._handle_auto_follow(keystr=keystr)
code_tokens: def handle_partial_key ( self , keystr : str ) -> None : if self . _context is None : log . hints . debug ( "Got key without context!" ) return log . hints . debug ( "Handling new keystring: '{}'" . format ( keystr ) ) for string , label in self . _context . labels . items ( ) : try : if string . startswith ( keystr ) : matched = string [ : len ( keystr ) ] rest = string [ len ( keystr ) : ] label . update_text ( matched , rest ) label . show ( ) else : if ( not self . _context . rapid or config . val . hints . hide_unmatched_rapid_hints ) : label . hide ( ) except webelem . Error : pass self . _handle_auto_follow ( keystr = keystr )
short_docstring: Handle a new partial keypress.
short_docstring_tokens: Handle a new partial keypress .
comment: """Handle a new partial keypress."""$SEP$# Show label again if it was hidden before$SEP$# element doesn't match anymore -> hide it, unless in rapid$SEP$# mode and hide_unmatched_rapid_hints is false (see #1799)