From 16f67b0d7dd9cae7f5b7ffd1cf25695ae51dafa0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 9 Oct 2010 05:49:10 +1100 Subject: [PATCH] Fix some outdated TEXTAREA mode references. --HG-- branch : mode-refactoring --- common/locale/en-US/map.xml | 2 +- teledactyl/content/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/locale/en-US/map.xml b/common/locale/en-US/map.xml index 3382fbec..de3a9952 100644 --- a/common/locale/en-US/map.xml +++ b/common/locale/en-US/map.xml @@ -236,7 +236,7 @@ :nmap :nnoremap :nunmap :nmapclear – Normal mode :vmap :vnoremap :vunmap :vmapclear – Visual mode :imap :inoremap :iunmap :imapclear – Insert mode -:tmap :tnoremap :tunmap :tmapclear – TextArea mode +:tmap :tnoremap :tunmap :tmapclear – Text Edit mode :cmap :cnoremap :cunmap :cmapclear – Command-line mode diff --git a/teledactyl/content/config.js b/teledactyl/content/config.js index d2183827..1711774c 100644 --- a/teledactyl/content/config.js +++ b/teledactyl/content/config.js @@ -62,7 +62,7 @@ const Config = Module("config", ConfigBase, { // we switch to -- MESSAGE -- mode for Teledactyl when the main HTML widget gets focus if (win && win.document instanceof HTMLDocument || dactyl.focus instanceof HTMLAnchorElement) { if (config.isComposeWindow) - modes.set(modes.INSERT, modes.TEXTAREA); + modes.set(modes.INSERT, modes.TEXT_EDIT); else if (dactyl.mode != modes.MESSAGE) dactyl.mode = modes.MESSAGE; }