Skip to content

Conversation

@nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Sep 14, 2022

  • Add global setting in accessibility settings
  • Respect for ctrl+f search
  • Respect for closing menus with Escape
  • Raise follow up issues for other shortcuts, but allow this PR to get in so apps can adapt in time
  • Add to Changes for developers & admins for Nextcloud 25 #32117 once merged

This is a pre-requirement for nextcloud/spreed#7563

Fix #34079

Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine by me, make sure if you write doc about this that loadState('theming', 'shortcutsDisabled', false), needs to have a default value otherwise this will break when the theming app is disabled

$this->initialStateService->provideLazyInitialState(Application::APP_ID, 'shortcutsDisabled', function () {
if ($this->userSession->getUser()) {
$uid = $this->userSession->getUser()->getUID();
return $this->config->getUserValue($uid, Application::APP_ID, 'shortcuts_disabled', 'no') === 'yes';

Check notice

Code scanning / Psalm

PossiblyNullReference

Cannot call method getUID on possibly null value
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 don't forget to remove the stray console.error

@szaimen

This comment was marked as resolved.

@nickvergessen nickvergessen force-pushed the bugfix/noid/add-global-shortcuts-setting branch from 74b4c19 to 5267ea2 Compare September 15, 2022 09:21
@nickvergessen
Copy link
Member Author

Rebased after #33733

And now with a global OCP method as discussed in nextcloud/contacts#2827 (comment) and chat

Signed-off-by: Joas Schilling <[email protected]>
@nickvergessen nickvergessen removed the 3. to review Waiting for reviews label Sep 15, 2022
@nickvergessen nickvergessen added the 4. to release Ready to be released and/or waiting for tests to finish label Sep 15, 2022
@nickvergessen nickvergessen merged commit c41982e into master Sep 15, 2022
@nickvergessen nickvergessen deleted the bugfix/noid/add-global-shortcuts-setting branch September 15, 2022 11:09
@skjnldsv skjnldsv mentioned this pull request Sep 15, 2022
@nickvergessen nickvergessen removed the pending documentation This pull request needs an associated documentation update label Sep 16, 2022
@juliusknorr juliusknorr mentioned this pull request Nov 8, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish accessibility bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessibility settings are cut off with 3 line "buttons"

6 participants