Using webkit version 1.6 I have been trying to figure out the class method/function to get the currently selected text. There's has_selection, but that only returns a bool.
I'm on linux mint using python gtk3 with webkit 1.6.
If I have to I'll use javascript, but I'd prefer a webkit method.
I don't really need a listener or signal. An event already creates a popup. I want to print the selected text in the popup.
I've tried:
webkit.webview.get_selected_text()
webkit.webview.get_selection()
webkit.webview.selected_text()
webkit.webview.get_property("selected-text")
Just shooting in the dark.