metabolist / metatext

A free, open-source iOS Mastodon client.
https://metabolist.org/metatext
GNU General Public License v3.0
727 stars 102 forks source link

Include keystrokes to improve usability and accessibility with UIKeyCommand #159

Open TyflosAccessibleSoftware opened 2 years ago

TyflosAccessibleSoftware commented 2 years ago

The app for iPad and Mac with M1 has not any keystroke to run fast to a button or function in the UI. shortcut keys to jump between home/local/federated help blind users to explore the interface easier. Other shortcut keys to most usual actions for a toot can help users too. These actions are new toot, reply, like and Boost

Solution

In Swift you can use UIKeyCommand.

Here is an article about it:

https://www.hackingwithswift.com/example-code/uikit/how-to-use-uikeycommand-to-add-keyboard-shortcuts

TyflosAccessibleSoftware commented 2 years ago

Suggestions for shortcuts:

command+1 : Home Command+2 : Local Command+3 : Federated Command+r : Reply Command+n : New toot Command+b : boost