"backspace" does not work with the MaskedEditExtender in safari and chrome
it even fails on http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/MaskedEdit/MaskedEdit.aspx
the fix is easy. in the current source code of MaskedEditBehavior.js about line 890 you have this:
if (Sys.Browser.agent == Sys.Browser.InternetExplorer || evt.type == "keypress")
{
if (scanCode == 8) // BackSpace
...
the code should be:
if (Sys.Browser.agent == Sys.Browser.InternetExplorer || evt.type == "keydown")
{
if (scanCode == 8) // BackSpace
...
I would like to take credit, but i found it here:
http://www.timgittos.com/archives/safari-and-firing-keypress-events-with-backspace/
I have compiled and tested it.. works fine
somebody please make the change to the golden source so I dont have to download/fix/ and copile the whole thing every time you come out with a new release...
thanks
jd
Comments: Adding my +1 to this issue. It really renders MaskedEdit annoying to use with WebKit browsers, to say the least. BTW, thanks for the quickfix snippet, bocca. :D
it even fails on http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/MaskedEdit/MaskedEdit.aspx
the fix is easy. in the current source code of MaskedEditBehavior.js about line 890 you have this:
if (Sys.Browser.agent == Sys.Browser.InternetExplorer || evt.type == "keypress")
{
if (scanCode == 8) // BackSpace
...
the code should be:
if (Sys.Browser.agent == Sys.Browser.InternetExplorer || evt.type == "keydown")
{
if (scanCode == 8) // BackSpace
...
I would like to take credit, but i found it here:
http://www.timgittos.com/archives/safari-and-firing-keypress-events-with-backspace/
I have compiled and tested it.. works fine
somebody please make the change to the golden source so I dont have to download/fix/ and copile the whole thing every time you come out with a new release...
thanks
jd
Comments: Adding my +1 to this issue. It really renders MaskedEdit annoying to use with WebKit browsers, to say the least. BTW, thanks for the quickfix snippet, bocca. :D