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!

Este site está com funcionalidades limitadas enquanto realizamos manutenção para melhorar sua experiência de uso. Se nenhum artigo resolver seu problema e você quiser fazer uma pergunta, nossa comunidade de suporte pode te ajudar em @FirefoxSupport no Twitter e /r/firefox no Reddit.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

How can I override a key pressed by user, replacing the keycode with another?

  • 1 resposta
  • 0 tem este problema
  • 1 exibição
  • Última resposta de cor-el

more options

Issue

I have another kind of problem with Firefox

Description

I need to replace the point (.) character pressed by user with comma (,) character, similar Excel feature. I manage the keyPress event and I change event.charCode from 46 to 44. It doesn't work on Firefox.

Have you any suggestion? Thank you.

Troubleshooting information

 Informazioni di base
       Nome
       Firefox
       Versione
       3.6.6
       Cartella del profilo
         Apri cartella
       Plugin installati
         about:plugins
       Configurazione build
         about:buildconfig
 Estensioni
       Nome
       Versione
       Attiva
       ID
       Microsoft .NET Framework Assistant
       1.1
       true
       {20a82645-c095-46ed-80e3-08825760534b}
 Preferenze modificate
     Nome
     Valore
       accessibility.typeaheadfind.flashBar
       0
       browser.history_expire_days.mirror
       180
       browser.history_expire_days_min
       10
       browser.places.importBookmarksHTML
       false
       browser.places.importDefaults
       false
       browser.places.leftPaneFolderId
       -1
       browser.places.migratePostDataAnnotations
       false
       browser.places.smartBookmarksVersion
       2
       browser.places.updateRecentTagsUri
       false
       browser.startup.homepage_override.mstone
       rv:1.9.2.6
       browser.tabs.loadInBackground
       false
       browser.tabs.warnOnClose
       false
       extensions.lastAppVersion
       3.6.6
       general.useragent.extra.microsoftdotnet
       (.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
       network.cookie.prefsMigrated
       true
       places.last_vacuum
       1276163403
       privacy.clearOnShutdown.cookies
       false
       privacy.clearOnShutdown.history
       false
       privacy.cpd.cookies
       false
       privacy.cpd.downloads
       false
       privacy.cpd.formdata
       false
       privacy.cpd.history
       false
       privacy.cpd.sessions
       false
       privacy.item.history
       false
       privacy.sanitize.migrateFx3Prefs
       true
       privacy.sanitize.timeSpan
       0
== Issue == I have another kind of problem with Firefox == Description == I need to replace the point (.) character pressed by user with comma (,) character, similar Excel feature. I manage the keyPress event and I change event.charCode from 46 to 44. It doesn't work on Firefox. Have you any suggestion? Thank you. == Troubleshooting information == Informazioni di base Nome Firefox Versione 3.6.6 Cartella del profilo Apri cartella Plugin installati about:plugins Configurazione build about:buildconfig Estensioni Nome Versione Attiva ID Microsoft .NET Framework Assistant 1.1 true {20a82645-c095-46ed-80e3-08825760534b} Preferenze modificate Nome Valore accessibility.typeaheadfind.flashBar 0 browser.history_expire_days.mirror 180 browser.history_expire_days_min 10 browser.places.importBookmarksHTML false browser.places.importDefaults false browser.places.leftPaneFolderId -1 browser.places.migratePostDataAnnotations false browser.places.smartBookmarksVersion 2 browser.places.updateRecentTagsUri false browser.startup.homepage_override.mstone rv:1.9.2.6 browser.tabs.loadInBackground false browser.tabs.warnOnClose false extensions.lastAppVersion 3.6.6 general.useragent.extra.microsoftdotnet (.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) network.cookie.prefsMigrated true places.last_vacuum 1276163403 privacy.clearOnShutdown.cookies false privacy.clearOnShutdown.history false privacy.cpd.cookies false privacy.cpd.downloads false privacy.cpd.formdata false privacy.cpd.history false privacy.cpd.sessions false privacy.item.history false privacy.sanitize.migrateFx3Prefs true privacy.sanitize.timeSpan 0

Todas as respostas (1)

more options

A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum. The helpers at that forum are more knowledgeable about web development issues. You need to register at the MozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25