X
Tap here to go to the mobile version of the site.

Support Forum

How can we disable keyboard shortcuts on webpages?

Posted

I am using the add-on firemacs, which allows us to edit text with emacs key-bindings.

The problem is: some key-bindings (set by firemacs) are overwritten at several webpages (e.g. Evernote and StackExchange).

For example, Ctrl-b moves normally the text cursor to the previous character in a textarea. But in the textarea at any site of StackExchange, Ctrl-b creates `**strong text**`.

Is it possible to disable keyboard shortcuts without disabling shortcuts for firemacs?

The trivial solution is to disable JavaScript. But I want to know a possibility of other solutions.

I am using the add-on firemacs, which allows us to edit text with emacs key-bindings. The problem is: some key-bindings (set by firemacs) are overwritten at several webpages (e.g. Evernote and StackExchange). For example, Ctrl-b moves normally the text cursor to the previous character in a textarea. But in the textarea at any site of StackExchange, Ctrl-b creates `**strong text**`. Is it possible to disable keyboard shortcuts without disabling shortcuts for firemacs? The trivial solution is to disable JavaScript. But I want to know a possibility of other solutions.

Additional System Details

Installed Plug-ins

  • Helix DNA Plugin: RealPlayer G2 Plug-In Compatible version 0.4.0.5745 built with gcc 3.4.6 on Nov 17 2010
  • The Adobe Reader plugin is used to enable viewing of PDF and FDF files from within the browser.
  • Version: 4.8.3.0
  • Google Talk Plugin Video Accelerator version:0.1.44.29
  • The IcedTea-Web Plugin executes Java applets.
  • Shockwave Flash 11.2 r202
  • Mime Type x-skype for Skype Buttons
  • Plugin for Installing Applications (new)
  • nspluginwrapper is a cross-platform NPAPI plugin viewer, in particular for linux/i386 plugins.This beta software is available under the terms of the GNU General Public License.

Application

  • Firefox 24.0
  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0
  • Support URL: https://support.mozilla.org/1/firefox/24.0/Linux/en-US/

Extensions

  • checkCompatibility 1.3 (check-compatibility@dactyl.googlecode.com)
  • Context Search 0.4.6 ({902D2C4A-457A-4EF9-AD43-7014562929FF})
  • DownloadHelper 4.9.21 ({b9db16a4-6edc-47ec-a1f4-b86292ed211d})
  • Download Statusbar 0.9.10 ({D4DD63FA-01E4-46a7-B6B1-EDAB7D6AD389})
  • Easy YouTube Video Downloader 7.0 ({c0c9a2c7-2e5c-4447-bc53-97718bc91e1b})
  • Firemacs 4.3 ({e98b7313-167d-48c6-89be-bc514d6de8d9})
  • MP4 Downloader 1.3.2.2 (mp4downloader@jeff.net)
  • openSUSE Firefox Extensions 1.0.2 (susefox@opensuse.org)
  • Oxygen KDE Options 4.0 BETA3 ({c2a3f51e-2920-4eab-9008-1bcb44d21d57})
  • Print pages to PDF 0.1.8.0 (printPages2Pdf@reinhold.ripper)
  • Restart 0.0.0.7m (Restart@schuzak.jp)
  • Simple Adblock 1.0.5 (simpleadblock@wips.com)
  • Stylish 1.3 ({46551EC9-40F0-4e47-8E18-8E5CF550CFB8})
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)
  • YouTube to MP3 1.2.3 (youtube2mp3@mondayx.de)
  • Download YouTube Videos as MP4 and FLV 1.4.7 ({b9bfaf1c-a63f-47cd-8b9a-29526ced9060}) (Inactive)
  • goo Dictionary 1.0.9 (goodictionary@goo.ne.jp) (Inactive)
  • google-no-tracking-url 1.1.0 (jid1-zUrvDCat3xoDSQ@jetpack) (Inactive)
  • Html Validator 0.9.5.2 ({3b56bcc7-54e5-44a2-9b44-66c3ef58c13e}) (Inactive)
  • NO Google Analytics 0.5 (jid1-JcGokIiQyjoBAQ@jetpack) (Inactive)
  • Remove Google Tracking 1.8 (jid0-DpogclPgnN9OvqNntEBbPZxBinY@jetpack) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: Intel Open Source Technology Center -- Mesa DRI Intel(R) Sandybridge Mobile
  • adapterDeviceID: Mesa DRI Intel(R) Sandybridge Mobile
  • adapterDrivers:
  • adapterRAM:
  • adapterVendorID: Intel Open Source Technology Center
  • driverDate:
  • driverVersion: 3.0 Mesa 9.0.2
  • info: {u'AzureCanvasBackend': u'cairo', u'AzureFallbackCanvasBackend': u'none', u'AzureContentBackend': u'none'}
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'']
  • numTotalWindows: 1
  • webglRenderer: Intel Open Source Technology Center -- Mesa DRI Intel(R) Sandybridge Mobile
  • windowLayerManagerRemote: False
  • windowLayerManagerType: Basic

Modified Preferences

  • accessibility.typeaheadfind.flashBar: 0
  • browser.cache.disk.capacity: 1048576
  • browser.cache.disk.smart_size.enabled: False
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.display.use_system_colors: False
  • browser.places.importBookmarksHTML: False
  • browser.places.smartBookmarksVersion: 4
  • browser.search.update: False
  • browser.search.useDBForOrder: True
  • browser.sessionstore.restore_on_demand: False
  • browser.startup.homepage_override.buildID: 2013091200
  • browser.startup.homepage_override.mstone: 24.0
  • browser.tabs.closeButtons: 3
  • browser.tabs.loadDivertedInBackground: True
  • browser.tabs.warnOnClose: False
  • browser.urlbar.autocomplete.enabled: False
  • browser.urlbar.default.behavior: 1
  • dom.disable_window_open_feature.toolbar: True
  • dom.mozApps.used: True
  • dom.w3c_touch_events.expose: False
  • extensions.checkCompatibility.18.0: True
  • extensions.checkCompatibility.19.0: False
  • extensions.checkCompatibility.21.0: False
  • extensions.checkCompatibility.22.0: False
  • extensions.checkCompatibility.23.0: True
  • extensions.checkCompatibility.24.0: False
  • extensions.checkCompatibility.nightly: False
  • extensions.lastAppVersion: 24.0
  • font.default.x-knda: sans-serif
  • font.language.group: ja
  • font.minimum-size.ja: 13
  • font.minimum-size.x-unicode: 13
  • font.minimum-size.x-user-def: 13
  • font.minimum-size.x-western: 13
  • font.minimum-size.zh-TW: 13
  • font.name.monospace.ja: VL Gothic
  • font.name.monospace.x-western: Luxi Mono
  • font.name.monospace.zh-TW: WenQuanYi Micro Hei Mono
  • font.name.sans-serif.ja: VL PGothic
  • font.name.sans-serif.x-knda: sans-serif
  • font.name.sans-serif.x-western: Luxi Sans
  • font.name.sans-serif.zh-TW: WenQuanYi Micro Hei
  • font.name.serif.ja: VL PGothic
  • font.name.serif.x-western: Luxi Serif
  • font.name.serif.zh-TW: AR PL UKai TW
  • font.size.fixed.ja: 13
  • font.size.fixed.x-western: 14
  • font.size.fixed.zh-TW: 14
  • font.size.variable.ja: 13
  • font.size.variable.x-western: 14
  • font.size.variable.zh-TW: 14
  • layers.acceleration.disabled: True
  • network.cookie.prefsMigrated: True
  • network.http.max-connections: 64
  • network.http.pipelining: True
  • network.http.proxy.pipelining: True
  • places.database.lastMaintenance: 1382815416
  • places.history.expiration.transient_current_max_pages: 100660
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • plugin.importedState: True
  • privacy.clearOnShutdown.cookies: False
  • privacy.clearOnShutdown.formdata: False
  • privacy.clearOnShutdown.sessions: False
  • privacy.popups.showBrowserMessage: False
  • privacy.sanitize.migrateFx3Prefs: True
  • privacy.sanitize.sanitizeOnShutdown: True
  • security.warn_viewing_mixed: False
  • storage.vacuum.last.index: 1
  • storage.vacuum.last.places.sqlite: 1381351874
  • storage.vacuum.last.smilefox.sqlite: 1358114712

Misc

  • User JS: No
  • Accessibility: No
jscher2000
  • Top 10 Contributor
3275 solutions 29874 answers

Helpful Reply

StackExchange links to a bunch of other sites, so I looked at the superuser.com site. The specific script that creates the interactive features of the editor is http://cdn.sstatic.net/Js/wmd.en.js. It's minified so I can't figure out the call needed to remove the keypress event listener. (Actually, I'm not sure I could figure it out even with the full source, as I don't use jQuery.) Maybe it's a question for StackOverflow?

StackExchange links to a bunch of other sites, so I looked at the superuser.com site. The specific script that creates the interactive features of the editor is http://cdn.sstatic.net/Js/wmd.en.js. It's minified so I can't figure out the call needed to remove the keypress event listener. (Actually, I'm not sure I could figure it out even with the full source, as I don't use jQuery.) Maybe it's a question for StackOverflow?
cor-el
  • Top 10 Contributor
  • Moderator
12384 solutions 114485 answers

Note that Firefox has a built-in JavaScript beautifier (Shift+F2: jsb) as one of the commands in the toolbox that makes it easy to inspect such a file in the scratchpad.

Note that Firefox has a built-in JavaScript beautifier (Shift+F2: jsb) as one of the commands in the toolbox that makes it easy to inspect such a file in the scratchpad.

Modified by cor-el