kirby icon indicating copy to clipboard operation
kirby copied to clipboard

Block keyboard shortcuts don’t work on macOS

Open maxhoffmann opened this issue 5 months ago • 3 comments

Description

When I try Kirby 4’s new keyboard shortcuts in the block field, most of them don’t work and documentation is inaccurate.

Expected behavior

Pressing the keyboard shortcuts listed on the Kirby 4 release page using cmd or ctrl as meta key should work.

Split block works by pressing cmd + enter and moving blocks works with ctrl + shift + up/down. All the other shortcuts don’t work for me, no matter which browser I use. It’s also strange, that the meta key is cmd in one shortcut and ctrl in a different one.

Screenshots

Screenshot 2024-01-10 at 14 30 44

To reproduce

  1. Go to an admin page with a block field
  2. Select a block
  3. Try any of the keyboard shortcuts (except the two working ones mentioned above)
  4. Shortcut has no effect

Your setup

Kirby Version: 4.0.3

Your system (please complete the following information)

  • Device: MacBook
  • OS: macOS 13.6.3 (Ventura)
  • Browser: Arc, Safari, Firefox
  • Version: latest versions

maxhoffmann avatar Jan 10 '24 16:01 maxhoffmann

@maxhoffmann indeed something is broken there.

The mix between ctrl and cmd/meta is mainly the result that combinations are often used up by the different OS differently. So it's hard to find a set that works consistently everywhere, I fear.

distantnative avatar Jan 15 '24 18:01 distantnative

@distantnative I wouldn’t mind learning to switch between them as long as the documentation is accurate and they work. I was just surprised that they don’t, since these have been one of the features I was really looking forward to in version 4 😄

maxhoffmann avatar Jan 15 '24 20:01 maxhoffmann

Definitely something broken, pretty badly.

Here's a bit of inventory in Firefox on macOS

  • CTRL + Backspace works if not in an input
  • CTRL + Alt + Up/Down work to extend the selection to the next/previous block
  • Meta + Enter works to split a block
  • CTRL + J works to merge two blocks
  • CTRL + Shift + Up/Down works once to move a block around, but then stops to work.

bastianallgeier avatar Jan 22 '24 15:01 bastianallgeier