Revision: 2263
http://vexi.svn.sourceforge.net/vexi/?rev=2263&view=rev
Author: clrg
Date: 2007-09-20 05:21:10 -0700 (Thu, 20 Sep 2007)
Log Message:
-----------
Modify focusable so that it allows Press1 events to cascade
- now tabs work again (without modification)
- if you have overlapping widgets, the child on top will still focus
Modified Paths:
--------------
trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/focusable.t
Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/focusable.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/focusable.t
2007-09-20 11:20:48 UTC (rev 2262)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/focusable.t
2007-09-20 12:21:10 UTC (rev 2263)
@@ -92,10 +92,11 @@
/** write trap to focus on Press1 */
static.pressFunc = function(v)
{
+ // cascade first in case there are underlying focusables
+ // so that we can be sure we are focused instead of them
+ cascade = v;
if (!trapee.focused and trapee.focusable)
trapee.focused = true;
- // prevent focusing of widgets under focusable widgets
- return;
}
</vexi>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn