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

Commit

Permalink
fix ctrl key handling on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsanjose committed Nov 19, 2012
1 parent 6881bf2 commit 9bca94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/KeyBindingManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ define(function (require, exports, module) {
*/
function _translateKeyboardEvent(event) {
var hasMacCtrl = (brackets.platform === "mac") ? (event.ctrlKey) : false,
hasCtrl = (brackets.platform === "win") ? (event.ctrlKey) : (event.metaKey),
hasCtrl = (brackets.platform !== "mac") ? (event.ctrlKey) : (event.metaKey),
hasAlt = (event.altKey),
hasShift = (event.shiftKey),
key = String.fromCharCode(event.keyCode);
Expand Down

0 comments on commit 9bca94b

Please sign in to comment.