Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

analytics: keyboard shortcut

Radium Zheng8ebf2b7e479b
diff --git a/react/features/local-recording/middleware.js b/react/features/local-recording/middleware.js
index dc69573df2..4947e8be5b 100644
--- a/react/features/local-recording/middleware.js
+++ b/react/features/local-recording/middleware.js
@@ -1,5 +1,6 @@
/* @flow */
+import { createShortcutEvent, sendAnalytics } from '../analytics';
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../base/app';
import { CONFERENCE_JOINED } from '../base/conference';
import { toggleDialog } from '../base/dialog';
@@ -36,27 +37,24 @@ MiddlewareRegistry.register(({ getState, dispatch }) => next => action => {
}
};
- recordingController.onWarning = function(messageKey, messageParams) {
+ recordingController.onWarning = (messageKey, messageParams) => {
dispatch(showNotification({
title: i18next.t('localRecording.localRecording'),
description: i18next.t(messageKey, messageParams)
}, 10000));
};
- recordingController.onNotify = function(messageKey, messageParams) {
+ recordingController.onNotify = (messageKey, messageParams) => {
dispatch(showNotification({
title: i18next.t('localRecording.localRecording'),
description: i18next.t(messageKey, messageParams)
}, 10000));
};
- // register shortcut
- APP.keyboardshortcut.registerShortcut(
- 'L',
- null,
- () => dispatch(toggleDialog(LocalRecordingInfoDialog)),
- 'keyboardShortcuts.localRecording'
- );
+ APP.keyboardshortcut.registerShortcut('L', null, () => {
+ sendAnalytics(createShortcutEvent('local.recording'));
+ dispatch(toggleDialog(LocalRecordingInfoDialog));
+ }, 'keyboardShortcuts.localRecording');
break;
case APP_WILL_UNMOUNT:
recordingController.onStateChanged = null;