Commit 0b88ce08 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Mouse fix for new key handling code

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@223 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 22 additions and 12 deletions
+22 -12
...@@ -25,6 +25,10 @@ CVS code - ...@@ -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.
......
...@@ -1358,11 +1358,17 @@ void mouse_init(void) ...@@ -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
......
...@@ -6,7 +6,7 @@ ...@@ -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 "" ...@@ -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 ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment