Page MenuHomePhabricator

Ctrl/Control-Space is overridden by keyboard layout changing shortcut on macOS
Closed, ResolvedPublic


On macOS, Control-Space is the default keyboard shortcut for changing input source (also known as keyboard layout or input method).

I frequently write in different languages (English, Hebrew, Russian), so I use this shortcut all the time.

The Wikidata Query UI uses Control-Space for auto-completion of Wikidata item names. I cannot use this useful shortcut, because macOS overrides it.

I can change this setting in macOS, but I'd rather not change it. This kind of thing should remain default.

The Wikidata Query UI should have a different or an alternative shortcut for auto-completion.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

We probably should have more than one option for this. Maybe Cmd-Space or Alt-Space in this case?

Makes sense to me... I just hope it won't break yet another person's workflow :)

I think some IDEs use something with Tab for autocompletion, but I’m not sure if any Tab keyboard shortcuts are still free (Alt+Tab switches windows, Ctrl+Tab switches tabs, Shift+Tab fixes indentation).

Change 478279 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[wikidata/query/gui@master] Add some more options for autocomplete key

Change 478279 merged by jenkins-bot:
[wikidata/query/gui@master] Add some more options for autocomplete key

Change 478580 had a related patch set uploaded (by WDQSGuiBuilder; owner: WDQSGuiBuilder):
[wikidata/query/gui-deploy@production] Merging from fd9c214ea7c7cf590254baf93228a0fbfd26faa4:

Change 478580 merged by Smalyshev:
[wikidata/query/gui-deploy@production] Merging from fd9c214ea7c7cf590254baf93228a0fbfd26faa4:

Added Ctrl-Alt-Space and Alt-Enter as secondary shortcuts for now.

Smalyshev claimed this task.
Smalyshev triaged this task as Medium priority.

On the Mac:

  • Control-Space is commonly used for switching input method.
  • Control-Option-Space is also captured by that keyboard shortcut.
  • Option-Enter is not easily accessible on a laptop or basic wireless keyboard (a Mac keyboard’s Return key is not the Enter key, Enter being found next to the numeric keypad on a costlier extended keyboard). It can be typed with Fn-Option-Return.

Request: user-configurable shortcut.


Added Ctrl-Alt-Space and Alt-Enter as secondary shortcuts for now.

It works well. Unfortunately, the existing GUI and tutorial articles still recommend the default “Ctrl+Space” hotkey only, which are unreachable for Window OS in Chinese, it will switch the IME input method too.
Do I need to fill out a new ticket and expect a change?
In addition, these two alternate hotkeys are still less convenient, as it is likely to require the right hand to leave the mouse.

This is still an issue, I have to press a series of buttons that's not easy to remember and reach. As above I have to press FN-OPTION-RETURN, there is no visual indication for this.