mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-25 20:40:36 +03:00
M: Change focus keybind
This commit is contained in:
parent
e4452b3679
commit
cba8180429
|
@ -48,9 +48,9 @@ export function HelpRSGraphTerm() {
|
|||
|
||||
<div className='sm:w-[21rem]'>
|
||||
<h1>Изменение узлов</h1>
|
||||
<li>Клик на конституенту – выделение</li>
|
||||
<li>Клик на узел – выделение</li>
|
||||
<li>
|
||||
Alt + клик – выбор <span style={{ color: APP_COLORS.fgPurple }}>фокус-конституенты</span>
|
||||
Левый клик – выбор <span style={{ color: APP_COLORS.fgPurple }}>фокус-конституенты</span>
|
||||
</li>
|
||||
<li>
|
||||
<IconReset className='inline-icon' /> Esc – сбросить выделение
|
||||
|
|
|
@ -274,12 +274,10 @@ export function TGFlow() {
|
|||
}
|
||||
}
|
||||
|
||||
function handleNodeClick(event: CProps.EventMouse, cstID: number) {
|
||||
if (event.altKey) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
handleSetFocus(cstID);
|
||||
}
|
||||
function handleNodeContextMenu(event: CProps.EventMouse, cstID: number) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
handleSetFocus(cstID);
|
||||
}
|
||||
|
||||
function handleNodeDoubleClick(event: CProps.EventMouse, cstID: number) {
|
||||
|
@ -409,8 +407,8 @@ export function TGFlow() {
|
|||
onNodeDragStop={() => setIsDragging(false)}
|
||||
onNodeMouseEnter={(event, node) => handleNodeEnter(event, Number(node.id))}
|
||||
onNodeMouseLeave={() => setHoverID(null)}
|
||||
onNodeClick={(event, node) => handleNodeClick(event, Number(node.id))}
|
||||
onNodeDoubleClick={(event, node) => handleNodeDoubleClick(event, Number(node.id))}
|
||||
onNodeContextMenu={(event, node) => handleNodeContextMenu(event, Number(node.id))}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user