搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 1 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 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

所有回复 (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