* 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:
Pavel Roskin 2002-12-25 05:46:03 +00:00
parent ddf2ad1612
commit e0bbeb7085
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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)):