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!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

[Solved] I am programming a rich text editor using javascript and html5. When I type a single quote ' the Quick Find window opens and my window loses the focus. How do I get around this problem?

  • 2 回覆
  • 1 有這個問題
  • 11 次檢視
  • 最近回覆由 rogerff

more options

The single quote shows up all the time in words like don't and isn't so it is typed often. In doing a rich text editor, I am not using a text box. If the future of programming is Web apps, then others will have this problem.

The single quote shows up all the time in words like don't and isn't so it is typed often. In doing a rich text editor, I am not using a text box. If the future of programming is Web apps, then others will have this problem.

由 the-edmeister 於 修改

所有回覆 (2)

more options
more options

No, the midas editor works OK on the single quote, but I can't use it as I need to be able to place each character and add additional graphics, all in canvas. I found out that e.stopPropagation after the keypress command stops the command from bubbling up, and that fixed the problem. Thank you.

由 rogerff 於 修改