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

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 51c1c978163834e3a1b5fb171cb9cbb44d21783b
Author: Jason San Jose <jasonsj@adobe.com>
Date:   Fri Jun 1 13:43:10 2012 -0700

    Implement keyBindingAdded and keyBindingRemoved events

commit f937b2228cc133d578891981db82699cb2a64ea0
Author: Jason San Jose <jasonsj@adobe.com>
Date:   Fri Jun 1 11:17:14 2012 -0700

    Remove keymap

commit 1af5f5887909f682b7da032522f4c93b291becfb
Author: Jason San Jose <jasonsj@adobe.com>
Date:   Thu May 31 16:32:34 2012 -0700

    refactor for  #964

commit 799ca1e
Author: Jason San Jose <jasonsj@adobe.com>
Date:   Thu May 31 12:31:19 2012 -0700

    refactor key descriptor formatting. remove unused dependency.

commit b2c253e
Author: Jason San Jose <jasonsj@adobe.com>
Date:   Thu May 31 11:44:30 2012 -0700

    Supporrt keyboard shortcut display override
  • Loading branch information
jasonsanjose committed Jun 1, 2012
1 parent c10ceee commit 1b1adab
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 398 deletions.
14 changes: 0 additions & 14 deletions src/brackets.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ define(function (require, exports, module) {
FileViewController = require("project/FileViewController"),
FileSyncManager = require("project/FileSyncManager"),
KeyBindingManager = require("command/KeyBindingManager"),
KeyMap = require("command/KeyMap"),
Commands = require("command/Commands"),
CommandManager = require("command/CommandManager"),
BuildInfoUtils = require("utils/BuildInfoUtils"),
Expand Down Expand Up @@ -203,18 +202,6 @@ define(function (require, exports, module) {
Dialogs.showModalDialog(Dialogs.DIALOG_ID_ABOUT);
});
}

function initKeyHandler() {
window.document.body.addEventListener(
"keydown",
function (event) {
if (KeyBindingManager.handleKey(KeyMap.translateKeyboardEvent(event))) {
event.stopPropagation();
}
},
true
);
}

function _initWindowListeners() {
// TODO: (issue 269) to support IE, need to listen to document instead (and even then it may not work when focus is in an input field?)
Expand Down Expand Up @@ -245,7 +232,6 @@ define(function (require, exports, module) {

_initDragAndDropListeners();
_initCommandHandlers();
initKeyHandler();
Menus.init(); // key bindings should be initialized first
_initWindowListeners();

Expand Down
Loading

0 comments on commit 1b1adab

Please sign in to comment.