Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: MaskedEdit "backspace" problem with safari and chrome -- here's the fix! [26978]

$
0
0
"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: Thanks caeser, it works.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>