fix issue with non-working global hotkeys in IEC code panel
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 21 Oct 2016 13:06:31 +0300
changeset 1548 3ebc08f75fef
parent 1547 33e03a4b3075
child 1549 f526fd97a7b0
fix issue with non-working global hotkeys in IEC code panel
ProjectController.py
editors/TextViewer.py
--- a/ProjectController.py	Thu Oct 20 14:45:27 2016 +0300
+++ b/ProjectController.py	Fri Oct 21 13:06:31 2016 +0300
@@ -1119,6 +1119,7 @@
                 self._IECCodeView = IECCodeViewer(self.AppFrame.TabsOpened, "", self.AppFrame, None, instancepath=name)
                 self._IECCodeView.SetTextSyntax("ALL")
                 self._IECCodeView.SetKeywords(IEC_KEYWORDS)
+                self._IECCodeView.Editor.SetReadOnly(True)                
                 try:
                     text = file(plc_file).read()
                 except:
--- a/editors/TextViewer.py	Thu Oct 20 14:45:27 2016 +0300
+++ b/editors/TextViewer.py	Fri Oct 21 13:06:31 2016 +0300
@@ -908,7 +908,7 @@
                         key_handled = True
             if not key_handled:
                 event.Skip()
-        elif key in NAVIGATION_KEYS:
+        else:
             event.Skip()
 
     def OnKillFocus(self, event):