diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
index c69f96139e1..6830b110fbd 100644
--- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
+++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
@@ -574,9 +574,11 @@ angular.module('zeppelinWebApp')
if (navigator.appVersion.indexOf('Mac') !== -1 ) {
$scope.editor.setKeyboardHandler('ace/keyboard/emacs');
+ $rootScope.isMac = true;
} else if (navigator.appVersion.indexOf('Win') !== -1 ||
navigator.appVersion.indexOf('X11') !== -1 ||
navigator.appVersion.indexOf('Linux') !== -1) {
+ $rootScope.isMac = false;
// not applying emacs key binding while the binding override Ctrl-v. default behavior of paste text on windows.
}
diff --git a/zeppelin-web/src/components/modal-shortcut/modal-shortcut.html b/zeppelin-web/src/components/modal-shortcut/modal-shortcut.html
index baeb011c2e2..863d7dd6a96 100644
--- a/zeppelin-web/src/components/modal-shortcut/modal-shortcut.html
+++ b/zeppelin-web/src/components/modal-shortcut/modal-shortcut.html
@@ -21,7 +21,7 @@
Keyboard shortcuts
-
Control in Note
+
Note Shortcuts
@@ -37,7 +37,7 @@
Control in Note
- Ctrl + Alt + c
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + c
@@ -70,7 +70,7 @@
Control in Note
- Ctrl + Alt + d
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + d
@@ -81,7 +81,7 @@
Control in Note
- Ctrl + Alt + a
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + a
@@ -92,7 +92,7 @@
Control in Note
- Ctrl + Alt + b
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + b
@@ -103,7 +103,7 @@
Control in Note
- Ctrl + Alt + k
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + k
@@ -114,7 +114,7 @@
Control in Note
- Ctrl + Alt + j
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + j
@@ -125,6 +125,7 @@
Control in Note
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + o
Ctrl + Alt + r
@@ -136,7 +137,7 @@
Control in Note
- Ctrl + Alt + o
+ Ctrl + { isMac ? 'Option' : 'Alt'}} + o
@@ -147,7 +148,7 @@
Control in Note
- Ctrl + Alt + e
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + e
@@ -158,7 +159,7 @@
Control in Note
- Ctrl + Alt + m
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + m
@@ -169,7 +170,7 @@
Control in Note
- Ctrl + Alt + t
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + t
@@ -180,7 +181,7 @@
Control in Note
- Ctrl + Alt + 1~0,-,+
+ Ctrl + {{ isMac ? 'Option' : 'Alt'}} + 1~0,-,+
@@ -188,7 +189,7 @@
Control in Note
-
Control in Note Editor
+
Editor Shortcuts