Closed vanch3d closed 2 months ago
I would suggest to change the name of the "Meta" key to something dynamic like this
const shortcut = useMemo(() => {
const os = window.navigator.platform;
if (os.startsWith('Mac')) {
return '⌘K';
} else {
return '^K';
}
}, [])
I would suggest to change the name of the "Meta" key to something dynamic like this
const shortcut = useMemo(() => { const os = window.navigator.platform; if (os.startsWith('Mac')) { return '⌘K'; } else { return '^K'; } }, [])
I cannot use the symbols, as I have multiple keys and non-key binding. So I'm using the official modifier name (Command
and Ctrl
)
See https://hivemq.kanbanize.com/ctrl_board/57/cards/21481/details/
This PR improves the UX of the
Data Hub Designer
by allowing users to copy nodes from the graph and duplicate them as new elements.The operation is an internal "copy-and-paste" of the selection in the designer:
A small feedback widget has been added to the bottom centre of the Designer. It contains a "copy" indicator, with the number of nodes copied.
Note that copied content is not shared in the clipboard and its scope is limited to the current draft. Leaving the Designer will wipe the buffer. The copy-and-paste feature is also only available on DRAFT policies.
The PR also adds a "cheat sheet" with all the keyboard shortcuts supported by
React Flow
or theData Hub Designer
. The modal is available from the canvas toolbox.After