mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Check for null start block in backspace handler.
This commit is contained in:
parent
dd7034501f
commit
77b0b6c716
3 changed files with 3 additions and 3 deletions
|
@ -2792,7 +2792,7 @@ var keyHandlers = {
|
||||||
}
|
}
|
||||||
// If at very beginning of text area, allow backspace
|
// If at very beginning of text area, allow backspace
|
||||||
// to break lists/blockquote.
|
// to break lists/blockquote.
|
||||||
else {
|
else if ( current ) {
|
||||||
// Break list
|
// Break list
|
||||||
if ( getNearest( current, 'UL' ) ||
|
if ( getNearest( current, 'UL' ) ||
|
||||||
getNearest( current, 'OL' ) ) {
|
getNearest( current, 'OL' ) ) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1710,7 +1710,7 @@ var keyHandlers = {
|
||||||
}
|
}
|
||||||
// If at very beginning of text area, allow backspace
|
// If at very beginning of text area, allow backspace
|
||||||
// to break lists/blockquote.
|
// to break lists/blockquote.
|
||||||
else {
|
else if ( current ) {
|
||||||
// Break list
|
// Break list
|
||||||
if ( getNearest( current, 'UL' ) ||
|
if ( getNearest( current, 'UL' ) ||
|
||||||
getNearest( current, 'OL' ) ) {
|
getNearest( current, 'OL' ) ) {
|
||||||
|
|
Loading…
Reference in a new issue