mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* editkeys.c (edit_translate_key): Treat Shift-Enter as return
without indent. Useful when pasting multiline text with Shift-button3 or Shift-Insert with autoindent enabled.
This commit is contained in:
parent
ddf2ad1612
commit
e0bbeb7085
@ -1,3 +1,9 @@
|
||||
2002-12-25 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* editkeys.c (edit_translate_key): Treat Shift-Enter as return
|
||||
without indent. Useful when pasting multiline text with
|
||||
Shift-button3 or Shift-Insert with autoindent enabled.
|
||||
|
||||
2002-12-23 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* editkeys.c (edit_translate_key): Treat Ctrl-Home and Ctrl-End
|
||||
|
@ -298,6 +298,10 @@ edit_translate_key (WEdit *edit, unsigned int x_keycode, long x_key,
|
||||
case KEY_M_SHIFT | KEY_DC:
|
||||
command = CK_XCut;
|
||||
goto fin;
|
||||
case KEY_M_SHIFT | '\n':
|
||||
/* useful for pasting multiline text */
|
||||
command = CK_Return;
|
||||
goto fin;
|
||||
|
||||
/* ctrl */
|
||||
case KEY_M_CTRL | (KEY_F (2)):
|
||||
|
Loading…
Reference in New Issue
Block a user