documentation upd

This commit is contained in:
Nikita (@Filolace) 2018-01-12 16:57:32 +03:00
commit feaf00a12f
3 changed files with 7 additions and 5 deletions

View file

@ -2680,7 +2680,8 @@ var Keyboard = function (_Module) {
toolsConfig = this.config.toolsConfig[currentBlock.name];
/**
* Check if configuration for enableLineBreaks property true
* Don't handle Enter keydowns when Tool sets enableLineBreaks to true.
* Uses for Tools like <code> where line breaks should be handled by default behaviour.
*/
if (toolsConfig && toolsConfig.enableLineBreaks) {
@ -2688,7 +2689,7 @@ var Keyboard = function (_Module) {
}
/**
* Check if shift key pressed synchronously with enter key
* Allow to create linebreaks by Shift+Enter
*/
if (event.shiftKey) {

File diff suppressed because one or more lines are too long

View file

@ -75,7 +75,8 @@ export default class Keyboard extends Module {
toolsConfig = this.config.toolsConfig[currentBlock.name];
/**
* Check if configuration for enableLineBreaks property true
* Don't handle Enter keydowns when Tool sets enableLineBreaks to true.
* Uses for Tools like <code> where line breaks should be handled by default behaviour.
*/
if (toolsConfig && toolsConfig.enableLineBreaks) {
@ -84,7 +85,7 @@ export default class Keyboard extends Module {
}
/**
* Check if shift key pressed synchronously with enter key
* Allow to create linebreaks by Shift+Enter
*/
if (event.shiftKey) {