Wednesday, 2025-06-11

piggz[m]henk: should have stuck with sailfish :)10:09
henkpiggz[m]: for a lot of reasons, I agree. but for some others, not so much, and they did weigh a lot /-:10:28
nephros_does anyone know how I can disable text selection in a WebView? I want to retain clicking and flicking but not selection.18:32
nephros_I have set canShowSelectionMarkers and chromeGestureEnabled to false but that doesn't do it.18:33
attahThe shoddy way would be to inject a css18:44
attahPerhaps not terrible if it is a single-page thing?18:45
nephros_attah: what css magic are you thinking of?18:56
attahhttps://www.w3schools.com/howto/howto_css_disable_text_selection.asp18:59
attahAnd example of injecting html (close enough) https://github.com/attah/harbour-bbk/blob/master/qml/harbour-bbk.qml18:59
attahmaybe the webview of every app has some standard/implicit/... user-css too, but i don't know19:00
nephros_onTextSelectionActiveChanged: { clearSelection() } helps a bit.19:03
nephros_thanks, I shall try that!19:03
attahI wouldn't bother if it is a multi-page thing, since it would have to be reinstalled on every page19:04
attah(page-load)19:04
nephros_I 'own' the content and load it with loadHtml, and already add some css. So it's easier than with random web content.19:05
attahgood :)19:06
nephros_hmm it works - but it leads to a javascript error which causes the page to be unresponsive...19:11
nephros_error: chrome://embedlite/content/SelectionHandler.js, line 310: TypeError: this._cache.selection is ...19:12
attahlol :)19:12
attahif that reproduces somewhat minimally, it sounds like it is worth a bug report19:13
nephros_possibly yeah. have to test with latest first, right now I'm using SFOS 4.4.19:15

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!