nextcloud / nextcloud/text

Always focus href entry after using mod-k keyboard shortcut

Open
#7,600 1 comment 0 reactions 1 assignee View on GitHub

@mejo- is already working on this.

Since Sep 15, 2026.

bug
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Describe the bug
The behavior of mod-k is still inconsistent.
In particular it will not focus the link entry
if the href already was falsy - for example right after the start.
(Follow up for #7599 )

To Reproduce
Steps to reproduce the behavior:

  1. Open a new text document.
  2. Enter some word.
  3. Select the word (mod-a) and turn it into a link (mod-k)
  4. See that the link entry does not receive focus.

It works after showing the link bubble for a link with an actual href.
It does not work directly after showing the link bubble for a link with an empty href.

Expected behavior
Whenever the shortcut is used link bubble should open with the link text entry focussed.

Server details:

  • Nextcloud version: 31, 32

Client details:

  • Browser: tested with Electron and FF
  • Device: Desktop

There are no errors in the relevant logs.
It's just that key inside the LinkBubbleView stays the same so the watcher does not trigger.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.