Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35555

Is there a way to filter out QWebPage::Back?

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P2: Important
    • None
    • None
    • WebKit
    • None
    • Windows 7, Windows XP, Ubuntu 12.10
      Qt 4.8.5

    Description

      Cannot comment on https://bugreports.qt-project.org/browse/QTWEBKIT-392, here is summary:

      In webkit-based GUIs, it's important that a webpage does not go back if Backspace is pressed. The only sensible way to disable back moves is to inherit from QWebPage and handle QWebPage::Back in a triggerAction() overload.

      I tried it on 4.8.5, and it worked on the first page opened, but on other pages, e.g. if I follow a hyperlink, the triggerAction() overload is not called at all and page is rewinded to previous item in history.

      Is it a bug? If not, what is the reason?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            annulen Konstantin Tokarev
            andrey_x64 Andrey Rogozhnikov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes