Opened 8 years ago
Closed 7 years ago
#17257 closed defect (patchwelcome)
Dijit textbox value vs htmlelement value
Reported by: | kkwekkeboom | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Dijit - Form | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
In my application, based on Qt webview I load a page with a dijit textbox.
Password: <input type="textbox" name="password" id="password" dojoType="dijit.form.TextBox" style="width: 100px;" onfocus="LaunchKeyboard(event)"/>
This virtual keyboard allows to press keys, and consequently emit events in the webview. E.g. I press '1', '2', '3', '4'.
QWebView::keyPressEvent(ev)
These events consequencly appear in the HTML element on the webpage.
var password = document.getElementById("password").value; console.log(password); //>>1234
However, the dijit component is not consequent (password = "")
var password = dijit.byId("password").value; console.log(password); //>>
This only happens when using a virtual keyboard, not with a normal keyboard.
Tested with Dijit 1.9.0 (and dojo 1.8.0)
Change History (3)
comment:1 Changed 7 years ago by
Owner: | set to Douglas Hays |
---|---|
Status: | new → assigned |
comment:2 Changed 7 years ago by
Owner: | Douglas Hays deleted |
---|---|
Status: | assigned → open |
comment:3 Changed 7 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | open → closed |
I don't know why that's happening; I'm not familiar with Qt webview at all, and we've never claimed to support it. If you have a patch for this I could look at it though.
Bulk update of unassigned Dijit - form tickets