Page MenuHomePhabricator

Ctrl + Del in the new template editor not working on Mac?
Closed, ResolvedPublic

Description

This is split from T290262: Add keyboard shortcuts for VE template dialog.

We consider this a deployment blocker:

  • The Ctrl + Del shortcut is reported to not work on Mac. It should be, I believe instead of Ctrl on Mac. As of now it appears like neither is working.

Nice to have:

  • Please check Ctrl + Shift + cursor keys on Mac as well.
  • I believe these shortcuts are currently implemented in a way that they work only when you use the tab key to navigate to the element in the sidebar you want to move/delete. They don't work when the focus is somewhere else. Please check if this is good enough or if it makes sense to make the shortcut work in more situations, e.g. when the focus is in the parameter search field.

Event Timeline

Change 735312 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[mediawiki/extensions/VisualEditor@master] Exclusively use CMD instead of CTRL for shortcuts on MacOS

https://gerrit.wikimedia.org/r/735312

Change 735315 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[mediawiki/extensions/VisualEditor@master] Support both DELETE and DEL when using template shortcuts on MacOS

https://gerrit.wikimedia.org/r/735315

@ECohen_WMDE, we wonder if on Mac both CMD + Del as well as Ctrl + Del should be supported, or only CMD + Del?

Good question @thiemowmde - I'm not aware of what the standard approach is. What do the rest of the VE shortcuts do? As a Mac user, I only use CMD so I feel like that would be enough, but I'm not sure if there others have the expectation that Ctrl should work.

Ah, good point. Other shortcuts in VE are indeed set up in a way that there is only Cmd+… on Mac, and only Ctrl+… on PC. Example: https://phabricator.wikimedia.org/diffusion/GVED/browse/master/src/ui/ve.ui.TriggerRegistry.js$227. Our code should be consistent.

Change 735312 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Exclusively use CMD instead of CTRL for shortcuts on MacOS

https://gerrit.wikimedia.org/r/735312

Change 735315 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Support both DELETE and DEL when using template shortcuts on MacOS

https://gerrit.wikimedia.org/r/735315

Other shortcuts in VE are indeed set up in a way that there is only Cmd+… on Mac, and only Ctrl+… on PC.

Great! Glad there was an easy answer there.

thiemowmde moved this task from Demo to Done on the WMDE-TechWish-Sprint-2021-10-27 board.