mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Add a quick action to have the possibility to toggle rtl-layout.
This commit is contained in:
parent
2e14975d1f
commit
04a431a77e
@ -62,6 +62,12 @@ define(function(require){
|
||||
*
|
||||
**/
|
||||
var _actions = {
|
||||
'toggle-rtl-layout': {
|
||||
help: 'Open a dialog to edit the command mode keyboard shortcuts',
|
||||
handler: function () {
|
||||
(document.body.getAttribute('dir')=='rtl') ? document.body.setAttribute('dir','ltr') : document.body.setAttribute('dir','rtl');
|
||||
}
|
||||
},
|
||||
'edit-command-mode-keyboard-shortcuts': {
|
||||
help: 'Open a dialog to edit the command mode keyboard shortcuts',
|
||||
handler: function (env) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user