[Aptitude-svn-commit] r3478 - in branches/aptitude-0.3/aptitude: . src/vscreen

Daniel Burrows dburrows@costa.debian.org
Mon, 27 Jun 2005 15:50:36 +0000


Author: dburrows
Date: Mon Jun 27 15:50:34 2005
New Revision: 3478

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/vscreen.cc
Log:
Update the main loop for the new key protocol.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Mon Jun 27 15:50:34 2005
@@ -1,5 +1,11 @@
 2005-06-27  Daniel Burrows  <dburrows@debian.org>
 
+	* src/vscreen/vscreen.cc:
+
+	  Use the function-key information from get_wch() to decide what
+	  sort of key event to generate, and call the new names of the
+	  key-handling methods.
+
 	* src/vscreen/vscreen_widget.cc, src/vscreen/vscreen_widget.h:
 
 	  Make the key-handling methods take keys instead of wint_ts.

Modified: branches/aptitude-0.3/aptitude/src/vscreen/vscreen.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vscreen.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vscreen.cc	Mon Jun 27 15:50:34 2005
@@ -522,7 +522,7 @@
 	    vscreen_redraw();
 	  else if(toplevel)
 	    {
-	      toplevel->dispatch_char(wch);
+	      toplevel->dispatch_key(key(wch, status == KEY_CODE_YES));
 	      main_hook();
 	      vscreen_tryupdate();
 	    }
@@ -614,7 +614,7 @@
 	vscreen_redraw();
       else if(result!=ERR && toplevel)
 	{
-	  toplevel->dispatch_char(wch);
+	  toplevel->dispatch_char(key(wch, result == KEY_CODE_YES));
 	  main_hook();
 	  vscreen_tryupdate();
 	}