Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

full stop (period) key not working in certain text boxes (Firefox 42.0)

  • 7 답장
  • 2 이 문제를 만남
  • 13 보기
  • 최종 답변자: dwl99

more options

I'm running Firefox 42.0 on a Windows 10 Pro PC. For some time now the full stop (period) key on the numbers keypad has stopped working in certain text boxes. It works fine in other text boxes (e.g. this one). It happens most commonly in text boxes relating to payments so if I type in 19.99 it appears as 1999. The full stop key in the main part of the keyboard works fine in any text box. I've tried 2 different keyboards and the same thing happens. And yes, I have numlock on. Anyone else had this?

I'm running Firefox 42.0 on a Windows 10 Pro PC. For some time now the full stop (period) key on the numbers keypad has stopped working in certain text boxes. It works fine in other text boxes (e.g. this one). It happens most commonly in text boxes relating to payments so if I type in 19.99 it appears as 1999. The full stop key in the main part of the keyboard works fine in any text box. I've tried 2 different keyboards and the same thing happens. And yes, I have numlock on. Anyone else had this?

모든 댓글 (7)

more options

Hmm, the numeric keypad sends different codes than the main part of the keyboard, but someone should have accounted for that.

Could you give a link to a form that has this problem and point out which field it is that won't accept that period?

more options

http://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=tablet&_sacat=0 - on the far left, grey section of the page there is a section to select the price range. If I enter 2.99 in the box it shows as 299. The same page is fine in Edge browser.

more options

It works for me using a Microsoft keyboard and the U.S. English version of Firefox. The field has a feature I haven't used before:

<input class="price" pattern="\d*" size="6" maxlength="13" name="_udlo" id="e1-61" value="" type="text">

In theory, that should only allow digits (https://developer.mozilla.org/docs/We.../Constraint_validation#Validation-related_attributes) but it doesn't seem to be working on mine, I can type letters.

Needs a little further investigation.

글쓴이 jscher2000 - Support Volunteer 수정일시

more options

Okay, upon further review, the "pattern" isn't enforced by Firefox as you type, it's a way for sites to validate input if they wish to do so. I'm not sure why the period on your numeric keypad isn't registering in that form but the regular period key is.

Could you try the box on the following test page to see what codes your keyboard is submitting for the regular period and the numeric keypad period:

http://dev.jeffersonscher.com/dom/keyevents2.html

This is what I'm getting:

(regular) keydown => 190 keypress => 46 keyup => 190

(numeric keypad) keydown => 110 keypress => 46 keyup => 110

more options

I got:

keydown => 190 keypress => 46 keyup => 190 keydown => 110 keypress => 46 keyup => 110

i.e. same as you

more options

Does it make a difference whether you use a '.' or a ',' in case the local language matters (en-GB)?

more options

It works if I enter ","