Author: reinhard
Date: 2006-10-18 09:32:47 -0500 (Wed, 18 Oct 2006)
New Revision: 8848

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py
Log:
Do not change focus to the moving block when using the mouse wheel.


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py        2006-10-18 
14:29:56 UTC (rev 8847)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py        2006-10-18 
14:32:47 UTC (rev 8848)
@@ -408,12 +408,9 @@
 
     def __on_mousewheel(self, event):
 
-        forward = event.GetWheelRotation() < 0
         block = self._gfObject.get_block()
 
-        if self._form._currentBlock != block:
-            # FIXME: this does not look like a good solution, does it?
-            self._request('FOCUS', data=block._entryList[0])
-            return
-
-        self._request(['PREVRECORD', 'NEXTRECORD'][forward])
+        if event.GetWheelRotation() < 0:
+            block.next_record()
+        else:
+            block.prev_record()



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to