# HG changeset patch
# User Andrey Skvortsov <andrej.skvortzov@gmail.com>
# Date 1477044391 -10800
# Node ID 3ebc08f75fef626d487decc4b8cce5ced9c5b096
# Parent  33e03a4b30759e6134f26969581e65e14eafa945
fix issue with non-working global hotkeys in IEC code panel

diff -r 33e03a4b3075 -r 3ebc08f75fef ProjectController.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:
diff -r 33e03a4b3075 -r 3ebc08f75fef editors/TextViewer.py
--- 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):