Skip to content

Commit bbb5dc5

Browse files
authored
Creating links on Android devices: now the mobile keyboard will have an "Enter" key for accepting the inserted link. (#2746)
1 parent e40768f commit bbb5dc5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
`Fix` — Deleting whitespaces at the start/end of the block
2929
`Improvement`*Types*`BlockToolConstructorOptions` type improved, `block` and `config` are not optional anymore
3030
- `Improvement` - The Plus button and Block Tunes toggler are now better aligned with large line-height blocks, such as Headings
31+
- `Improvement` — Creating links on Android devices: now the mobile keyboard will have an "Enter" key for accepting the inserted link.
3132

3233
### 2.29.1
3334

src/components/inline-tools/inline-tool-link.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export default class LinkInlineTool implements InlineTool {
134134
public renderActions(): HTMLElement {
135135
this.nodes.input = document.createElement('input') as HTMLInputElement;
136136
this.nodes.input.placeholder = this.i18n.t('Add a link');
137+
this.nodes.input.enterKeyHint = 'done';
137138
this.nodes.input.classList.add(this.CSS.input);
138139
this.nodes.input.addEventListener('keydown', (event: KeyboardEvent) => {
139140
if (event.keyCode === this.ENTER_KEY) {

0 commit comments

Comments
 (0)