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

Javascript 'paste' command not working

XMLWordPrintable

    • 0cc07329495a05fc5f8532c4420bd23db662fdb6

      Even after enabling QWebEngineSettings::JavascriptCanAccessClipboard javascript document.execCommand("paste"); doesn't work.

      Steps to reproduce the issue:
      1. Run attached test application
      2. Make sure you have some text on clipboard
      3. Click on the Paste button

      Expected outcome:
      Text is pasted in the textfield

      Actual outcome:
      Text isn't pasted

      Notes:
      Seems that it doesn't work on Chrome(61.0.3163.100) either even though it claims paste being supported.

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

            kkohne Kai Köhne
            kileppal Kimmo Leppälä
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes