Permalink
Browse files

Merge pull request #519 from diegosarmentero/master

Fixing bug for pre key press event.
  • Loading branch information...
2 parents 6966340 + c669704 commit b6c1487ba5aa1e5c39aeaa6b79f4ec2329f088e8 @diegosarmentero diegosarmentero committed May 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ninja_ide/tools/completion/completer_widget.py
@@ -166,7 +166,7 @@ def pre_key_insert_completion(self):
return True
def process_pre_key_event(self, event):
- if not self.isVisible():
+ if not self.isVisible() or self._editor.lang != "python":
return False
skip = self._key_operations.get(event.key(), lambda: False)()
self._key_operations.get(event.modifiers(), lambda: False)()

0 comments on commit b6c1487

Please sign in to comment.