Mouse fix for new key handling code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@223 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
c9f147aba3
commit
0b88ce08cb
|
@ -25,6 +25,10 @@ CVS code -
|
||||||
do_toggle()
|
do_toggle()
|
||||||
- Rewrote function to allow NOHELP toggle to wotk on systems
|
- Rewrote function to allow NOHELP toggle to wotk on systems
|
||||||
without a working resizewin(). New function window_init().
|
without a working resizewin(). New function window_init().
|
||||||
|
mouse_init()
|
||||||
|
- Add keypad only if mouse support is on, otherwise mouse doesn't
|
||||||
|
work. I guess you have to choose between having the mouse and
|
||||||
|
having a working keypad for the time being (thank god for Meta-m).
|
||||||
- winio.c:
|
- winio.c:
|
||||||
total_refresh()
|
total_refresh()
|
||||||
- Added titlebar() call.
|
- Added titlebar() call.
|
||||||
|
|
6
nano.c
6
nano.c
|
@ -1358,11 +1358,17 @@ void mouse_init(void)
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
#ifdef NCURSES_MOUSE_VERSION
|
#ifdef NCURSES_MOUSE_VERSION
|
||||||
if (ISSET(USE_MOUSE)) {
|
if (ISSET(USE_MOUSE)) {
|
||||||
|
keypad(edit, TRUE);
|
||||||
|
keypad(bottomwin, TRUE);
|
||||||
|
|
||||||
mousemask(BUTTON1_RELEASED, NULL);
|
mousemask(BUTTON1_RELEASED, NULL);
|
||||||
mouseinterval(50);
|
mouseinterval(50);
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mousemask(0, NULL);
|
mousemask(0, NULL);
|
||||||
|
keypad(edit, FALSE);
|
||||||
|
keypad(bottomwin, FALSE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
24
po/nano.pot
24
po/nano.pot
|
@ -6,7 +6,7 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"POT-Creation-Date: 2000-09-14 23:37-0400\n"
|
"POT-Creation-Date: 2000-09-15 11:48-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -675,52 +675,52 @@ msgstr ""
|
||||||
msgid "Cannot move bottom win"
|
msgid "Cannot move bottom win"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1631
|
#: nano.c:1637
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s enable/disable"
|
msgid "%s enable/disable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1643
|
#: nano.c:1649
|
||||||
msgid "enabled"
|
msgid "enabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1644
|
#: nano.c:1650
|
||||||
msgid "disabled"
|
msgid "disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1872
|
#: nano.c:1878
|
||||||
msgid "Main: set up windows\n"
|
msgid "Main: set up windows\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1879
|
#: nano.c:1885
|
||||||
msgid "Main: bottom win\n"
|
msgid "Main: bottom win\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1885
|
#: nano.c:1891
|
||||||
msgid "Main: open file\n"
|
msgid "Main: open file\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1919
|
#: nano.c:1925
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "I got Alt-O-%c! (%d)\n"
|
msgid "I got Alt-O-%c! (%d)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1943
|
#: nano.c:1949
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "I got Alt-[-1-%c! (%d)\n"
|
msgid "I got Alt-[-1-%c! (%d)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:1976
|
#: nano.c:1982
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "I got Alt-[-2-%c! (%d)\n"
|
msgid "I got Alt-[-2-%c! (%d)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:2024
|
#: nano.c:2030
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "I got Alt-[-%c! (%d)\n"
|
msgid "I got Alt-[-%c! (%d)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: nano.c:2050
|
#: nano.c:2056
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "I got Alt-%c! (%d)\n"
|
msgid "I got Alt-%c! (%d)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in New Issue