title: How to disable the Android keyboard from taking the control over input fields in webview?
body: <p>I have been working on this specific requirement for more than 2 months now. But I haven't found a solution yet to disable the native keyboard when an input field is focused in a webview. I am building an app which has a built in keypad(essentially a view) and I want this to be displayed instead of the native keyboard.</p>
  
  <p>What I've tried so far:</p>
  
  <ol>
  <li>Add javascript eventListener for click events to display my keypad
  using JavscriptInterface.(Works)</li>
  <li>Set the webview focusable:false and
  its parent's <code>descendantFocusability</code> to  <code>blocksDescendants</code> (This works
  but doesn't display the cursor on the input field)</li>
  <li>Hiding the native
  keyboard on resize event of javascript using loadUrl method.(Works
  but the native keyboard is displayed momentarily before hiding the
  keyboard)</li>
  <li>Listening to the <code>OnGlobalLayoutChange</code> event to check if 
  the keyboard has been added. (Works but the result is same as
  in the case above with a little improve in performance) </li>
  <li>Force stop the IME service. (Works but the app has to be a system
  app to force stop packages and the keyboard service has to be started 
  whenever the app goes to background.
  Is there a way in which I can make this work?</li>
  </ol>