Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Pass function keys to webview?
Forum Updated to NodeBB v4.3 + New Features

Pass function keys to webview?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 697 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    elkhunter
    wrote on last edited by
    #1

    Is there any way to get function keys to work in a webview? For example if I load the following page in firefox, then press F8 it shows the keycode for F8 (119) but when I load it in a qt-based browser the function keys do not work.

    http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_event_key_keycode

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jean
      wrote on last edited by
      #2

      Hello, elkhunter.

      Normally function key is controlled by browser (chrome, opera, firefox,..) and It works depending on not webpage but browser. If webpage have control function keys, all browser have compute same action.
      So you can implement your own browser using webview. To assign special function key, you can find key value in http://doc.qt.io/qt-5/Qt.html (enum Qt::Key).

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved