Opened 6 years ago

Closed 5 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 6 years ago by bill

Owner: set to Douglas Hays
Status: newassigned

Bulk update of unassigned Dijit - form tickets

comment:2 Changed 6 years ago by Douglas Hays

Owner: Douglas Hays deleted
Status: assignedopen

comment:3 Changed 5 years ago by bill

Resolution: patchwelcome
Status: openclosed

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.

Note: See TracTickets for help on using tickets.