6. Custom bindings
Prev |  | Next

## 6. Custom bindings

Keystroke | Action
--- | ---
Enter | Insert a newline character if possible. Otherwise, if caret is at the beginning of a paragraph, list item or a few other kinds of block, insert same block before. Otherwise, if caret is at the end of a block, insert same block after. Otherwise, split block.
Del | Delete selection if any. Otherwise, if caret is at the end of a paragraph, list item or a few other kinds of block, join with following block. Otherwise, delete character following caret.
BackSpace | Delete selection if any. Otherwise, if caret is at the beginning of a paragraph, list item or a few other kinds of block, join with preceding block. Otherwise, delete character preceding caret.
Ctrl+Enter | Add same block after the paragraph, list item or a few other kinds of block which is the ancestor of selected node.
Shift+Ctrl+Enter | Add same block before the paragraph, list item or a few other kinds of block which is the ancestor of selected node.
Shift+Enter | Inserts a `br` at caret and moves caret after inserted `br`.

Application Event | Action
--- | ---
Drop an object. | On a `a` element having an `href attribute`, change the value of this attribute to the dropped string. On an `img` element, change the value of the `src` attribute to the dropped string. Elsewhere If the object being dropped represents an URL or an absolute filename, open the corresponding document in XMLmind XML Editor. Otherwise, paste the dropped text or XML at or after the drop location.
Drag one of the “handles” displayed around an image. (The “handles” are displayed after clicking on the image.) | Resize the image, but always preserve its aspect ratio. Pressing Ctrl (Cmd on the Mac) while dragging the handle allows to distort the image.
Drag a separator found between two table columns. | Resize the table column. More precisely, this gives an appropriate percent width (e.g. `<colgroup width="35%">`) to all table columns. ### Warning If the document containing the table is an XHTML 5 document, then the `colgroup` element has no `width` attribute. In such case, the resize table column action has to use the `style` attribute (e.g. `<colgroup style="width: 35%">`). In practice, this means that unless you select the "Emulate Web Browser" CSS stylesheet, you'll not see the table columns correctly resized.

Prev |  | Next
5. The XHTML toolbar | Home | A. Table rendering