nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.26k stars 4.05k forks source link

Keyboard shortcuts for common actions in Files #30484

Open nimishavijay opened 2 years ago

nimishavijay commented 2 years ago

Files right now is not super accessible by keyboard, with other software like Gdrive, Onedrive and Dropbox having nice keyboard shortcuts for common actions. It would be great if NC also had better keyboard accessibility. Here are the most common actions and their keyboard shortcuts across different software, and any similar actions in other Nextcloud apps also. Since there are sometimes slightly different shortcuts for different actions across softwares, we can't have something that's 100% familiar to everyone, but we can use the most common shortcut key.

Action Gdrive Dropbox Onedrive Other Nextcloud apps Recommended shortcut
Navigate through files ↑ ↓ → ← / k j h l ↑ ↓ ↑ ↓ → ← ↑ ↓ in Mail ↑ ↓ → ← (left and right to support grid view)
Select/unselect Ctrl+Space or x Space Ctrl+Space
Select range Shift+↑ ↓ → ←
Select all Ctrl + a Ctrl + a Ctrl + a Ctrl + a
Unselect all Ctrl + n Esc Ctrl + d Esc (Ctrl + n is used in Firefox for opening a new window, so Esc can be used for unselect as long as no popup is open)
Search / / / / for quick find /
Delete Del Del Del Del
Rename n F2 F2 F2
Open file/folder Enter or o Enter Enter in Mail Enter
Close open file/popup Esc Esc Esc
Go up a folder g p Alt + ↑ Alt + ↑
Upload Shift + u (upload file), Shift + i (upload folder) Shift + u (open upload menu)
Share . s . (s is used for favouriting)
Favourite/star s s in Mail s
Toggle sidebar/details g d i d
Open actions menu a Shift + F10 a (we could implement this across all apps)
Cut/copy/paste Ctrl + x/c/v Ctrl + x/c/v Ctrl + x/c/v
Switch grid/list view v v
Go to navigation g n n (we could implement this across all the apps)
Show keyboard shortcuts ? ? ? ?

What do you think? cc @jancborchardt who also worked on this and @skjnldsv for Files

Spartachetto commented 2 years ago

In case you don't remember it, there is the old issue #1444 .

I cite it because it has a synthesis of the shortcuts of the different apps. No idea if it is up to date, though.

MacsKavana commented 2 years ago

This is a super important feature. Can we expect anything?

nickvergessen commented 2 years ago

Server PR for a global setting to opt out of keyboard shortcuts to satisfy accessibility is in:

Method to check: OCP.Accessibility.disableKeyboardShortcuts()

If that is true the app(s) must not register ANY shortcuts.

skjnldsv commented 1 year ago

@nimishavijay do you have a bit more insight on the mac Meta key? Does it replace Ctrl on the keyboard shortcuts you listed? :)

skjnldsv commented 1 year ago

Relevant

Aveyron-RetD commented 9 months ago

Browsing through Nextcloud github issues trying to find the best place to request a way for adding a shortcut to tags i think this might be the best place. Ignore my comment if not. i would suggest the letter t for tags Tags are on three main apps and the core of nextcloud Tags for the file app, tags for the photo app Tags for the mail app To add a tag on any of the core app is quite a chore on V28 BTW we have lost the possibility to tags multiple item on V28 if you would like me to open a bug report let me know.

Files app Find the document you want to tag => Right click => Open the details => Right click on the submenu => Add a tag => Select the tags you want to add Photo app Find the picture you want to tag => Open the picture => Open the details => Right click on the submenu => Add a tag => Select the tags you want to add Mail app Select the mail you want to tag => Right click on the sub menu => Modify the tags ?? => Add a tag

Could i suggest also the @ for sharing