From 7e8204266135882d2ce95271dde7397be5eca06c Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 26 Oct 2018 17:38:02 +0200 Subject: [PATCH] add remote command for set clipboard --- src/fenrirscreenreader/core/remoteManager.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fenrirscreenreader/core/remoteManager.py b/src/fenrirscreenreader/core/remoteManager.py index 4ae30b98..040d7687 100644 --- a/src/fenrirscreenreader/core/remoteManager.py +++ b/src/fenrirscreenreader/core/remoteManager.py @@ -38,6 +38,7 @@ class remoteManager(): self.interruptConst = 'INTERRUPT' self.defineWindowConst = 'WINDOW ' self.resetWindowConst = 'RESETWINDOW' + self.setClipboardConst = 'CLIPBOARD ' # setting controll self.settingConst = 'SETTING ' self.setSettingConst = 'SET ' @@ -86,6 +87,12 @@ class remoteManager(): # reset window if upperCommandText.startswith(self.resetWindowConst): self.resetWindow() + # set clipboard + if upperCommandText.startswith(self.setClipboardConst): + parameterText = commandText[len(self.setClipboardConst):] + self.setClipboard(parameterText) + def setClipboard(self, text = ''): + self.env['runtime']['memoryManager'].addValueToFirstIndex('clipboardHistory', text) def defineWindow(self, windowText): start = {} end = {}