undefinedoffset/silverstripe-keyboardshortcuts

Adds keyboard shortcuts for common tasks to SilverStripe 4.0+ (ctrl/command+s for save anyone?)

Installs: 11 757

Dependents: 0

Suggesters: 0

Security: 0

Stars: 20

Watchers: 3

Forks: 2

Language:JavaScript

Type:silverstripe-vendormodule

2.0.0 2019-04-17 18:24 UTC

This package is auto-updated.

Last update: 2024-10-25 04:53:21 UTC


README

Adds keyboard shortcuts for common tasks to SilverStripe 4.0+ (ctrl/command+s for save anyone?).

Requirements

  • SilverStripe 4.0+

Installation

composer require undefinedoffset/silverstripe-keyboardshortcuts

If you prefer you may also install manually:

Shortcuts:

These shortcuts are not guaranteed to work in all browsers on all operating systems, and what they do by default on your particular browser/os is not guaranteed so take care. This module uses a slightly modified Mousetrap by ccampbell for it's keyboard event handling, modifications are to allow interfacing with TinyMCE.

Global

ctrl+s/command+s Save/Save Draft

ctrl+alt+n Add Page/Create Page/New Model Admin Item

ctrl+f/command+f Toggles the search panel in pages and in other cms sections

ctrl+shift+f/command+shift+f Clears the current search filters in pages and in other cms sections

Pages and Files only

ctrl+shift+s/command+shift+s Save and Publish

Pages only

ctrl+k/command+k Toggle between Draft/Published Preview [not saved]

ctrl+m/command+m Toggle between preview modes (Split mode > Edit mode > Preview mode) saved in session

ctrl+j/command+j Toggle between preview sizes (Auto > Desktop > Tablet > Mobile) saved in session

TinyMCE

alt+shift+k/alt+shift+k Unlink

ctrl+shift+m/command+shift+m Insert Media

ctrl+shift+l/command+shift+l Insert or Remove Bulleted List

ctrl+l/command+l Insert or Remove Numbered List

These are in addition to the built in keyboard shortcuts for TinyMCE: ctrl+z/command+z Undo Typing

ctrl+y/command+y Redo Typing

ctrl+b/command+b Bold text

ctrl+i/command+i Italic text

ctrl+u/command+u Underline text

ctrl+1 to ctrl+6/command+1 to command+6 Heading 1 to 6

ctrl+7/command+7 Paragraph

ctrl+8/command+8 Div

ctrl+9/command+9 Address