From ccfcb42b03df1051a94d78ccf561929ece86b5c6 Mon Sep 17 00:00:00 2001 From: RaymondLim Date: Tue, 17 Jul 2012 15:20:59 -0700 Subject: [PATCH] Don't limit ourself in handling key events for html selection only. As we transit to js or css, we still need to dismiss the html code hints popup. --- src/editor/CodeHintManager.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/editor/CodeHintManager.js b/src/editor/CodeHintManager.js index d547bbc9a8e..a414ae86ac7 100644 --- a/src/editor/CodeHintManager.js +++ b/src/editor/CodeHintManager.js @@ -372,11 +372,6 @@ define(function (require, exports, module) { * @param {KeyboardEvent} event */ function handleKeyEvent(editor, event) { - // For now we only handle hints in html - if (editor.getModeForSelection() !== "html") { - return; - } - // Check for Control+Space or "<" if (event.type === "keydown" && event.keyCode === 32 && event.ctrlKey) { _showHint(editor);