Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1395 from adobe/rlim/typing-issue-1394
Browse files Browse the repository at this point in the history
Don't block keyPress events for charCode 33 and 34 (! and "). Let CodeMirror handles these.
  • Loading branch information
redmunds committed Aug 17, 2012
2 parents acf9883 + 58beb2a commit af6c1f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/editor/CodeHintManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ define(function (require, exports, module) {
var keyCode = event.keyCode;

// Up arrow, down arrow and enter key are always handled here
if (keyCode === 38 || keyCode === 40 || keyCode === 13 ||
keyCode === 33 || keyCode === 34) {
if (event.type !== "keypress" &&
(keyCode === 38 || keyCode === 40 || keyCode === 13 ||
keyCode === 33 || keyCode === 34)) {

if (event.type === "keydown") {
if (keyCode === 38) {
Expand Down

0 comments on commit af6c1f9

Please sign in to comment.