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 #1391 from adobe/randy/code-hints-scroll
Browse files Browse the repository at this point in the history
remove Home and End key support from code hint list
  • Loading branch information
RaymondLim committed Aug 17, 2012
2 parents 13ece98 + a53f4eb commit acf9883
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/editor/CodeHintManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ define(function (require, exports, module) {

// Up arrow, down arrow and enter key are always handled here
if (keyCode === 38 || keyCode === 40 || keyCode === 13 ||
(keyCode >= 33 && keyCode <= 36)) {
keyCode === 33 || keyCode === 34) {

if (event.type === "keydown") {
if (keyCode === 38) {
Expand All @@ -192,12 +192,6 @@ define(function (require, exports, module) {
} else if (keyCode === 34) {
// Page Down
this.setSelectedIndex(this.selectedIndex + this.getItemsPerPage());
} else if (keyCode === 35) {
// End
this.setSelectedIndex(this.options.maxResults);
} else if (keyCode === 36) {
// Home
this.setSelectedIndex(0);
} else {
// Enter/return key
// Trigger a click handler to commmit the selected item
Expand Down

0 comments on commit acf9883

Please sign in to comment.