code: def isKeyboardShown(self):
          '''
          Whether the keyboard is displayed.
          '''
  
          self.__checkTransport()
          dim = self.shell('dumpsys input_method')
          if dim:
              # FIXME: API >= 15 ?
              return "mInputShown=true" in dim
          return Falsf isKeyboardShown(self):
          '''
          Whether the keyboard is displayed.
          '''
  
          self.__checkTransport()
          dim = self.shell('dumpsys input_method')
          if dim:
              # FIXME: API >= 15 ?
              return "mInputShown=true" in dim
          return False
docs: Whether the keyboard is displayed.