mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 17:15:46 +01:00
Fix some outdated TEXTAREA mode references.
--HG-- branch : mode-refactoring
This commit is contained in:
@@ -236,7 +236,7 @@
|
|||||||
:nmap :nnoremap :nunmap :nmapclear – Normal mode
|
:nmap :nnoremap :nunmap :nmapclear – Normal mode
|
||||||
:vmap :vnoremap :vunmap :vmapclear – Visual mode
|
:vmap :vnoremap :vunmap :vmapclear – Visual mode
|
||||||
:imap :inoremap :iunmap :imapclear – Insert 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
|
:cmap :cnoremap :cunmap :cmapclear – Command-line mode
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ const Config = Module("config", ConfigBase, {
|
|||||||
// we switch to -- MESSAGE -- mode for Teledactyl when the main HTML widget gets focus
|
// 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 (win && win.document instanceof HTMLDocument || dactyl.focus instanceof HTMLAnchorElement) {
|
||||||
if (config.isComposeWindow)
|
if (config.isComposeWindow)
|
||||||
modes.set(modes.INSERT, modes.TEXTAREA);
|
modes.set(modes.INSERT, modes.TEXT_EDIT);
|
||||||
else if (dactyl.mode != modes.MESSAGE)
|
else if (dactyl.mode != modes.MESSAGE)
|
||||||
dactyl.mode = modes.MESSAGE;
|
dactyl.mode = modes.MESSAGE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user