diff --git a/ChangeLog b/ChangeLog index a76022a05a148ace1ea6555d1d8677b41f6a572b..0a9e6e899e5b2a75595e759254cbb46de3a544e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,11 @@ CVS code - main() - Added vars oldcurrent and oldcurrent_x to check whether cursor pos has changed and if so update the pos with -c. + do_mouse() + - Send 27 when the menu item clicked is an alt key seq... The + lines aren't lined up since the menu width changed though, + this breakage depends on whether the new widths will be kept + or not (FEEDBACK!!) - nano.texi: - corrected the Mouse Toggle section, noticed by Daniel Bonniot. - winio.c: diff --git a/nano.c b/nano.c index 4c960664c6c4ba9aa52dadafdcb37e584e206cb9..00fa6c04084e3bca95e0afaa7214379fe541ee68 100644 --- a/nano.c +++ b/nano.c @@ -1750,6 +1750,11 @@ void do_mouse(void) /* And ungetch that value */ ungetch(val); + + /* And if it's an alt-key sequence, we should probably send alt + too ;-) */ + if (val >= 'a' && val <= 'z') + ungetch(27); } } #endif