Code Monkey home page Code Monkey logo

Comments (2)

matt-cook avatar matt-cook commented on August 16, 2024

We won't be adding content-specific functionality to the kiosk app (such as automatically selecting a specific form element on page load). This should be handled at the application level via javascript: http://stackoverflow.com/questions/17500704/javascript-set-focus-to-html-form-element

from kiosk.

matt-cook avatar matt-cook commented on August 16, 2024

Reported again related to this bug: https://code.google.com/p/chromium/issues/detail?id=501062

Okay, so the reason that this is not working is because in order for anything to focus within a webview (including from autofocus), the webview itself must be focused as well. Until recently there was no way to reliably focus a webview because of a related bug ( issue 503832 ), but that is fixed now.

Now, if you want to be able to guarantee that autofocus will work when navigating to a page, you should both navigate AND focus the webview. For example, you can use: "webview.src = 'some URL'; webview.focus()". I've tested that and it works for the example link provided with this bug.

May simply be a matter of calling webview.focus() after loading page.

from kiosk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.