Skip to content

Commit

Permalink
More cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
vitvakatu committed Feb 27, 2024
1 parent 906994e commit 7cafe2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/gui2/src/bindings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineKeybinds } from '@/util/shortcuts'

export const codeEditorBindings = defineKeybinds('code-editor', {
toggle: ['`'],
toggle: ['Mod+`'],
})

export const interactionBindings = defineKeybinds('current-interaction', {
Expand Down
4 changes: 2 additions & 2 deletions app/gui2/src/components/GraphEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ const graphBindingsHandler = graphBindings.handler({
nodeSelection.selectAll()
},
deselectAll() {
console.log('deselect all', document.activeElement)
nodeSelection.deselectAll()
if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur()
Expand All @@ -250,6 +249,7 @@ const graphBindingsHandler = graphBindings.handler({
})
},
toggleVisualizationFullscreen() {
if (nodeSelection.selected.size !== 1) return
graphStore.transact(() => {
const selected = set.first(nodeSelection.selected)
const isFullscreen = graphStore.db.nodeIdToNode.get(selected)?.vis?.fullscreen
Expand Down Expand Up @@ -325,10 +325,10 @@ const graphBindingsHandler = graphBindings.handler({
const { handleClick } = useDoubleClick(
(e: MouseEvent) => {
graphBindingsHandler(e)
if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur()
}
graphBindingsHandler(e)
},
() => {
if (keyboardBusy()) return false
Expand Down

0 comments on commit 7cafe2e

Please sign in to comment.