[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : luke
Repository : xara
Revision   : 1618
Date       : Mon Jul 31 12:55:42 BST 2006

Changed paths:
   M /Trunk/XaraLX/tools/texttool.cpp

TextTools owns all non-constrain or alt keys


Diff:
Index: Trunk/XaraLX/tools/texttool.cpp
===================================================================
--- Trunk/XaraLX/tools/texttool.cpp	(revision 1617)
+++ Trunk/XaraLX/tools/texttool.cpp	(revision 1618)
@@ -1078,7 +1078,7 @@
    	// Filter out all key release events 
    	if (pKeyPress->IsRelease())
 	{
-		TRACEUSER( "jlh92", _T("Release
") );
+		TRACEUSER( "wuerthne", _T("Release
") );
 
 		if (GetApplication()->FindSelection()->IsSelRangeGagged())
 		{
@@ -1164,6 +1164,11 @@
 	if( !pKeyPress->IsChar() )
 	{
 		TRACEUSER("wuerthne", _T("not char"));
+
+		// We own all keys that don't have constrain or alt pressed
+		if( !pKeyPress->IsConstrain() && !pKeyPress->IsAlternative() )
+			return true;
+
 		return pKeyPress->GetUnicode() == _T(' ');          // always claim the Space key (tool switch)
 	}
 


Xara