summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-03-15 11:05:05 +0800
committerCheng-Han, Wu2016-03-15 11:05:05 +0800
commitb5d9d28f2e7515247e8ec27fc21f232727512b5d (patch)
treeb78ae1a0cf42814fa9c84aae0b08ae7a42aaacb7 /public
parent25dd400708bebf107fb8840c627032d42f52117e (diff)
Updated to handle Mac shortcut keys of "Cmd-Left" and "Cmd-Right"
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index d780714d..92b5ae5d 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -47,7 +47,9 @@ var defaultExtraKeys = {
cm.replaceSelection(spaces);
}
}
- }
+ },
+ "Cmd-Left": "goLineLeftSmart",
+ "Cmd-Right": "goLineRight"
};
var idleTime = 300000; //5 mins