kirby icon indicating copy to clipboard operation
kirby copied to clipboard

Block keyboard shortcuts: moving block only work once

Open maxhoffmann opened this issue 1 year ago • 4 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

I found the same issue and just reported it on the forum before finding this thread: https://forum.getkirby.com/t/keyboard-shortcuts-for-blocks-field-broken/32165/3

It seems like this issue is still there in 4.3.0 and 5.0.0-alpha.1.

Also, are there any plans to add more shortcuts in the future? The most critical one to me would be some way to add a new block without using the mouse. Without that, there isn't really a good workflow for generating content, only editing what is already there. After that, meta + k for hyperlinks and maybe something for superscripts and subscripts would be nice to have, but not as crucial IMO

gaufde avatar Aug 02 '24 19:08 gaufde