From 21a97fb23804db47ae00d3318d4922c2834f9c7b Mon Sep 17 00:00:00 2001 From: Oleg Isonen Date: Sat, 21 Dec 2024 23:43:58 +0000 Subject: [PATCH] fix: fix bindings panel placement (#4640) ## Description Accidentally positioned on the right instead of left Also fixes shfit+P and shift+E when pressed in the inputs https://github.com/webstudio-is/webstudio-community/discussions/208 https://github.com/webstudio-is/webstudio/issues/4638 ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file --- apps/builder/app/builder/shared/binding-popover.tsx | 2 +- apps/builder/app/builder/shared/commands.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/builder/app/builder/shared/binding-popover.tsx b/apps/builder/app/builder/shared/binding-popover.tsx index 43c8be5fc6..8bc912b42b 100644 --- a/apps/builder/app/builder/shared/binding-popover.tsx +++ b/apps/builder/app/builder/shared/binding-popover.tsx @@ -367,7 +367,7 @@ export const BindingPopover = ({ const valueError = validate?.(evaluateExpressionWithinScope(value, scope)); return ( { // handle special case for popover close diff --git a/apps/builder/app/builder/shared/commands.ts b/apps/builder/app/builder/shared/commands.ts index 85521775bd..66d6369ad3 100644 --- a/apps/builder/app/builder/shared/commands.ts +++ b/apps/builder/app/builder/shared/commands.ts @@ -299,6 +299,8 @@ export const { emitCommand, subscribeCommands } = createCommandsEmitter({ handler: () => { $publishDialog.set("publish"); }, + disableHotkeyOnFormTags: true, + disableHotkeyOnContentEditable: true, }, { name: "openExportDialog", @@ -306,6 +308,8 @@ export const { emitCommand, subscribeCommands } = createCommandsEmitter({ handler: () => { $publishDialog.set("export"); }, + disableHotkeyOnFormTags: true, + disableHotkeyOnContentEditable: true, }, { name: "toggleComponentsPanel",