Drag is applying to entire window using gui=mshtml
See original GitHub issueSpecification
- pywebview version: 3.4
- platform / version: Windows 10 2004
Description
I want the user to be able to select numbers/text in some input field. Doing this, by what I’d normally do, is dragging over the content of such input field to select it, in order to either delete or edit. Sure I can double-click on it instead, but that’s not the point.
All goes well using gui='cef'
.
But just to make this function properly, will add ~60mb to the compiled version in the end, so I prefer using mshtml
instead.
gui='edgehtml'
is buggy as mentioned here.
gui='edgechromium'
needs dependency > .NET Framework 4.6.2 and Edge Runtime installed mentioned here.
Using gui='mshtml'
results in unable to text select because the drag applies to the entire window.
Whenever I try to select input text, it instead drags the window.
I’m aware of issue #315 but this applies to macOS and Frameless windows. I’ve played around with text_select with no luck, either text_select=True or False. Also followed up the example, adding a class to input, but issue remains.
main.py:
import webview
if __name__ == '__main__':
webview.create_window('Example', 'index.html', text_select=True)
webview.start(debug=True, gui='mshtml')
index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Example</title>
</head>
<body>
<input>
<input type='number'>
</body>
</html>
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
This issue is fixed in master. Easy-drag does not work at all with other Windows renderers. This should be fixed as well.
This is clearly a bug, I will look into this.