7#include "webengineaccesskeyutils.h"
9QString WebEngineViewer::WebEngineAccessKeyUtils::accessKeyScript()
14 "var matches = document.querySelectorAll(\"a[href], area,button:not([disabled]), "
15 "input:not([disabled]):not([hidden]),label[for],legend,select:not([disabled]),textarea:not([disabled])\");"
16 "for (var i = 0; i < matches.length; ++i) {"
17 " var r = matches[i].getBoundingClientRect();"
19 " text: matches[i].innerText,"
20 " tagName: matches[i].tagName,"
21 " src: matches[i].href,"
22 " boundingRect: [r.left, r.top, r.right - r.left, r.bottom - r.top],"
23 " accessKey: matches[i].getAttribute('accesskey'),"
24 " target: matches[i].getAttribute('target')"
QString fromLatin1(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.