fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
widgets wip - widgets mechanism + label widget
[fnpeditor.git]
/
modules
/
documentCanvas
/
commands.js
diff --git
a/modules/documentCanvas/commands.js
b/modules/documentCanvas/commands.js
index
96b7c70
..
0e48de1
100644
(file)
--- a/
modules/documentCanvas/commands.js
+++ b/
modules/documentCanvas/commands.js
@@
-55,6
+55,7
@@
commands.register('toggle-list', function(canvas, params) {
parent1 = selectionStart.element.parent() || undefined,
parent2 = selectionEnd.element.parent() || undefined;
parent1 = selectionStart.element.parent() || undefined,
parent2 = selectionEnd.element.parent() || undefined;
+ var selectionFocus = cursor.getSelectionFocus();
if(params.toggle) {
canvas.list.create({element1: parent1, element2: parent2});
} else {
if(params.toggle) {
canvas.list.create({element1: parent1, element2: parent2});
} else {
@@
-62,6
+63,7
@@
commands.register('toggle-list', function(canvas, params) {
canvas.list.extractItems({element1: parent1, element2: parent2, merge: false});
}
}
canvas.list.extractItems({element1: parent1, element2: parent2, merge: false});
}
}
+ canvas.setCurrentElement(selectionFocus.element, {caretTo: selectionFocus.offset});
});
commands.register('toggle-grid', function(canvas, params) {
});
commands.register('toggle-grid', function(canvas, params) {