Deselect text when clicking outside it.
This commit is contained in:
parent
43196e8efb
commit
96b43c6766
|
|
@ -2572,6 +2572,8 @@ class Group (object):
|
||||||
self.activelayer.currentselect._onMouseDown(self.activelayer.currentselect, x, y)
|
self.activelayer.currentselect._onMouseDown(self.activelayer.currentselect, x, y)
|
||||||
else:
|
else:
|
||||||
if MODE in [" ", "s", "b"]:
|
if MODE in [" ", "s", "b"]:
|
||||||
|
if CURRENTTEXT:
|
||||||
|
CURRENTTEXT.editing = False
|
||||||
if self.activelayer.currentselect and MODE=="s":
|
if self.activelayer.currentselect and MODE=="s":
|
||||||
global SCALING
|
global SCALING
|
||||||
if (self.activelayer.currentselect.minx-5<x<self.activelayer.currentselect.minx+5 and \
|
if (self.activelayer.currentselect.minx-5<x<self.activelayer.currentselect.minx+5 and \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue