1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-18 14:04:04 +00:00

Implement object viewer based on codemirror

This commit is contained in:
2023-05-29 17:07:58 +02:00
parent 8319f0bd82
commit 5015a47495
10 changed files with 415 additions and 248 deletions

View File

@ -62,6 +62,8 @@
return false;
}
toggleChildren(itemKey, false);
if (activeKey !== itemKey) {
activeKey = itemKey;
if (level === 0) {
@ -79,7 +81,7 @@
dispatch('closeAll');
}
function toggleChildren(itemKey, shift) {
function toggleChildren(itemKey, shift = false) {
childrenOpen[itemKey] = !childrenOpen[itemKey];
if (shift) {
closeAll();
@ -89,6 +91,7 @@
function doubleClick(itemKey) {
// toggleChildren(itemKey, false);
dispatch('trigger', { level, itemKey });
childrenOpen[itemKey] = true;
}
function showContextMenu(evt, item) {