BoltAI / BoltAI

BoltAI issue tracker
https://boltai.app
6 stars 0 forks source link

Paste action doesn't work with alternative keyboard layouts #111

Closed neominik closed 1 week ago

neominik commented 3 months ago

Hi, thanks for creating this nice app! Since I am using a keyboard layout where basically all keys are relocated to other places (think dvorak or similar), anything that tries to paste stuff into applications (inline, global whisper, commands, …) fails, because instead of Cmd+V it will press Cmd+P in my case. In other places in the app (e.g., recording keyboard shortcuts in the settings) the correct mapping does work. My current workaround for commands is to set all of them to "copy to clipboard" and then pasting manually, which is fine, but for the new global whisper or inline commands, this is not an option. A fix for this would be much appreciated!

longseespace commented 3 months ago

Hey @neominik. Can you help me set up this custom layboard layout. How can I do it? Or does it require a physical keyboard with a different layout?

neominik commented 3 months ago

It shouldn't really matter which specific layout you use. There is also no need for a different physical keyboard (assuming you have an ISO or ANSI layout). You could try Dvorak, which is included in macOS. Add it as a new input method in System Settings -> Keyboard -> Input Sources -> + -> English - Dvorak. It has a 'k' in the place of 'v'.

Or if you want to try my specific layout, you can download it at https://dl.neo-layout.org/neo.keylayout (you might need to download an icon as well: https://dl.neo-layout.org/grafik/logos/neo.icns), then move the files to /Library/Keyboard Layouts (or ~/Library/Keyboard Layouts). Then you can select it in the Input Sources under "Others" -> Neo.

I also recommend setting "Show input menu in menu bar" (Input Sources -> All Input Sources) for the duration of your experiments so you can easily switch between layouts and check which one is active.

Thanks for looking into this!

longseespace commented 1 week ago

I've fixed this in v1.21.0. Can you confirm? Sorry for the delay 😅

neominik commented 1 week ago

I tested it and it seems to work. Thank you very much!