--- a/src/widgets/Shortcuts.js Fri Sep 25 14:45:38 2015 +0200
+++ b/src/widgets/Shortcuts.js Fri Oct 02 11:27:17 2015 +0200
@@ -6,7 +6,7 @@
* Keyboard shortcuts widget
* This widgets add global shortcuts for common actions.
* The default shortcuts are:
- * - Escape or Control-space for play/pause
+ * - Control-space for play/pause
* - Control-left for rewind (+shift to go faster)
* - Control-right for forward (+shift to go faster)
*/
@@ -21,7 +21,7 @@
var _this = this;
/* Standard shortcuts */
- Mousetrap.bindGlobal(["esc", "ctrl+space"], function (e) {
+ Mousetrap.bindGlobal("ctrl+space", function (e) {
e.preventDefault();
if (! _this.media.getPaused()) {
_this.media.pause();
@@ -54,5 +54,11 @@
_this.media.setCurrentTime(Math.min(_this.media.duration, _this.media.getCurrentTime() + 5 * _this.time_increment));
return false;
});
+ Mousetrap.bindGlobal("ctrl+a", function (e) {
+ // Annotate
+ e.preventDefault();
+ _this.player.trigger("CreateAnnotation.toggle");
+ return false;
+ });
};