element-hq / element-hq/element-android

Rich text editor: action when long pressing the attachments button

Open
#7,717 0 comments 0 reactions 0 assignees View on GitHub
A-Rich-Text-Editor T-Enhancement Z-Labs
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Your use case

#### What would you like to do?
There can be some shortcut when ling pressing the "plus" button that opens attachment menu.

#### Why would you like to do it?
This can provide a quick action for something and make some feature frequently used by more advanced users more quickly.

#### How would you like to achieve it?
Long pressing attachments button can, for example switch text formatting, enter fullscreen editor mode when not in text formatting mode or just open last selected attachment type.

Also a nice way to implement this would be that long press (or swipe up) could open attachment menu like always and then releasing the finger on option in menu selects it, similliar to how three-dot menu in some apps (like Chrome browser) work.
This would make going into certan attachment type a single swipe, while still providing traditional clicking for those who don't know the gesture.

### Have you considered any alternatives?

_No response_

### Additional context

_No response_

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.