From eb77122823f35c2296cc332aec7f4380db6dafe7 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 17 Jun 2022 07:28:16 +0800 Subject: fix(input): do no reinterpret mouse keys with ALT modifiers Remove check for MOD_MASK_META as it is for * *c_Esc* Note: If your key is hard to hit on your keyboard, train yourself to use CTRL-[. *c_META* *c_ALT* - ALT (|META|) acts like if the chord is not mapped. + ALT (|META|) may act like if the chord is not mapped. For example acts like x if does not have a command-line mode mapping. *c_CTRL-C* diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index a16d88b4e9..27f1fed751 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -39,7 +39,7 @@ char action ~ abbreviation. Note: If your key is hard to hit, try CTRL-[ instead. *i_META* *i_ALT* - ALT (|META|) acts like if the chord is not mapped. + ALT (|META|) may act like if the chord is not mapped. For example acts like x if does not have an insert-mode mapping. *i_CTRL-C* diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt index 51e823b75f..92ba7b4079 100644 --- a/runtime/doc/intro.txt +++ b/runtime/doc/intro.txt @@ -383,8 +383,8 @@ Note: , ..., and will not work. - Nvim supports mapping multibyte chars with modifiers such as ``. Which combinations actually work depends on the the UI or host terminal. -- When a key is pressed using a meta or alt modifier and no mapping exists - for that keypress, Nvim behaves as though was pressed before the key. +- When a key is pressed using a meta or alt modifier and no mapping exists for + that keypress, Nvim may behave as though was pressed before the key. - It is possible to notate combined modifiers (e.g. for CTRL-ALT-T), but your terminal must encode the input for that to work. |tui-input| diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index a74149d050..27c953a460 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -250,7 +250,7 @@ Input/Mappings: , , , , , , , , etc. Case-sensitive: and are two different keycodes. - ALT behaves like if not mapped. |i_ALT| |v_ALT| |c_ALT| + ALT may behave like if not mapped. |i_ALT| |v_ALT| |c_ALT| Normal commands: |gO| shows a filetype-defined "outline" of the current buffer. diff --git a/runtime/doc/visual.txt b/runtime/doc/visual.txt index 905ae49887..5383ea4f72 100644 --- a/runtime/doc/visual.txt +++ b/runtime/doc/visual.txt @@ -161,9 +161,10 @@ If you want to highlight exactly the same area as the last time, you can use *v_* In Visual mode: Stop Visual mode. *v_META* *v_ALT* - ALT (|META|) acts like if the chord is not mapped. + ALT (|META|) may act like if the chord is not mapped. For example acts like x if does not have a visual-mode mapping. + *v_CTRL-C* CTRL-C In Visual mode: Stop Visual mode. When insert mode is pending (the mode message shows -- cgit