fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: canvas fix - restore deleting selected text
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
keyboard.js
diff --git
a/src/editor/modules/documentCanvas/canvas/keyboard.js
b/src/editor/modules/documentCanvas/canvas/keyboard.js
index
eafd091
..
9f58066
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/keyboard.js
+++ b/
src/editor/modules/documentCanvas/canvas/keyboard.js
@@
-306,7
+306,7
@@
handlers.push({keys: [KEYS.BACKSPACE, KEYS.DELETE],
caretTo = 'start';
}
caretTo = 'start';
}
- if(cursor.isSelecting()
&& !cursor.isSelectingWithinElement()
) {
+ if(cursor.isSelecting()) {
event.preventDefault();
var start = cursor.getSelectionStart(),
end = cursor.getSelectionEnd();
event.preventDefault();
var start = cursor.getSelectionStart(),
end = cursor.getSelectionEnd();