Add a quick action to have the possibility to toggle rtl-layout.

This commit is contained in:
Matthias Bussonnier 2016-10-31 11:57:33 -07:00
parent 2e14975d1f
commit 04a431a77e

View File

@ -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) {