Skip to content

Commit

Permalink
fixed issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun committed Apr 11, 2017
1 parent f96a2e9 commit cc46e1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist/
*.pypirc
*.pyc
*note
*backup*
8 changes: 4 additions & 4 deletions draceditor/static/draceditor/js/draceditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
editor.selection.setSelectionRange(originalRange);
}
};
// win/linux: Shift+U
// win/linux: Ctrl+Shift+U
var markdownToUnderscores = function() {
var originalRange = editor.getSelectionRange();
if (editor.selection.isEmpty()) {
Expand All @@ -185,7 +185,7 @@
editor.selection.setSelectionRange(originalRange);
}
};
// win/linux: Shift+S
// win/linux: Ctrl+Shift+S
var markdownToStrikethrough = function() {
var originalRange = editor.getSelectionRange();
if (editor.selection.isEmpty()) {
Expand Down Expand Up @@ -491,15 +491,15 @@
});
editor.commands.addCommand({
name: 'markdownToUnderscores',
bindKey: {win: 'Shift-U', mac: 'Option-U'},
bindKey: {win: 'Ctrl-Shift-U', mac: 'Command-Option-U'},
exec: function(editor) {
markdownToUnderscores()
},
readOnly: true
});
editor.commands.addCommand({
name: 'markdownToStrikethrough',
bindKey: {win: 'Shift-S', mac: 'Option-S'},
bindKey: {win: 'Ctrl-Shift-S', mac: 'Command-Option-S'},
exec: function(editor) {
markdownToStrikethrough()
},
Expand Down

0 comments on commit cc46e1b

Please sign in to comment.