From 75bd9ea0ee8ff105619f9fd7bbfaf7f105cd11b8 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Mon, 28 May 2018 14:32:04 +0200 Subject: [PATCH] Update attributeManager.py --- src/fenrirscreenreader/core/attributeManager.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/core/attributeManager.py b/src/fenrirscreenreader/core/attributeManager.py index 9f72222d..24e892eb 100644 --- a/src/fenrirscreenreader/core/attributeManager.py +++ b/src/fenrirscreenreader/core/attributeManager.py @@ -25,10 +25,16 @@ class attributeManager(): self.resetAttributeCursor() def resetAttributeDelta(self): self.currAttributeDelta = '' - self.prevAttributeDelta = '' + self.prevAttributeDelta = '' + def updateAttributeDelta(self, currAttributeDelta): + self.prevAttributeDelta = self.currAttributeDelta + self.currAttributeDelta = currAttributeDelta def resetAttributeCursor(self): self.currAttributeCursor = None self.prefAttributeCursor = None + def updateAttributeCursor(self, currAttributeCursor): + self.prefAttributeCursor = self.currAttributeCursor + self.currAttributeCursor = currAttributeCursor def resetAttributeData(self, currAttributes): self.prevAttributes = None self.currAttributes = currAttributes