Skip to content
Browse files

Add Delete shortcut

  • Loading branch information...
1 parent e206f05 commit 5479b5572c40f7c87140cba75a4b4379c18c0094 @icebeat committed May 21, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.html
  2. +1 −1 js/events.js
View
2 index.html
@@ -17,7 +17,7 @@
<script type="text/javascript" src="js/parser.js"></script>
<script type="text/javascript" src="js/undomanager.js"></script>
<script type="text/javascript">
- var text = ["# SHORTCUTS", "", "FocusMode: Cmd + D", "SmartTyping: Type \"<\", \"\"\", \"[\", \"{\" & \"(\"", "Save: Cmd + S", "Indent: Tab or Shift + Tab", "", "## Emphasis and Strong", "", "Emphasis: *example* = _example_ (or Cmd + I)", "Strong: **example** = __example__ (or Cmd + B)", "", "## Numbered lists: type \"1.\" + space", "", "1. Ordered list item", "2. Ordered list item", "3. Ordered list item (enter to create a new item)", "", "## Bulleted lists: type \"*\" + space", "", "* Bulleted list item", "* Bulleted list item", "* Bulleted list item", "", "## ToDo lists: type \"-\" or \"+\" + space", "", "- Task (Mark as done, click on \"-\")", "+ Task Done", "", "## Indentation", "", " This is an example of a indented paragraph.", "", "## Blockquotes", "", "> This is an example of a quoted paragraph. It stays indented over multiple lines until you hit enter.", "","@icebeat"]
+ var text = ["# SHORTCUTS", "", "FocusMode: Cmd + D", "SmartTyping: Type \"<\", \"\"\", \"[\", \"{\" & \"(\"", "Save: Cmd + S", "Indent: Tab or Shift + Tab", "", "## Emphasis and Strong", "", "Emphasis: *example* = _example_ (or Cmd + I)", "Strong: **example** = __example__ (or Cmd + B)", "Delete: -example- (or Cmd + U)", "", "## Numbered lists: type \"1.\" + space", "", "1. Ordered list item", "2. Ordered list item", "3. Ordered list item (enter to create a new item)", "", "## Bulleted lists: type \"*\" + space", "", "* Bulleted list item", "* Bulleted list item", "* Bulleted list item", "", "## ToDo lists: type \"-\" or \"+\" + space", "", "- Task (Mark as done, click on \"-\")", "+ Task Done", "", "## Indentation", "", " This is an example of a indented paragraph.", "", "## Blockquotes", "", "> This is an example of a quoted paragraph. It stays indented over multiple lines until you hit enter.", "","@icebeat"]
var Document = new Editor(localStorage["content"] || text);
Document.goDocStart();
Document.focusInput();
View
2 js/events.js
@@ -253,7 +253,7 @@ var keyBindings = {
"super+f": "toggleFullScreen",
"super+b": "makeStrong",
"super+i": "makeEmphasis",
- //"super+d": "makeDelete",
+ "super+u": "makeDelete",
"super+l": "toggleToDo",
// "super+tab": "toggleDocument",
// "super+e": "toggleWidth",

0 comments on commit 5479b55

Please sign in to comment.
Something went wrong with that request. Please try again.