-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add global setting to disable keyboad shortcuts #34081
Add global setting to disable keyboad shortcuts #34081
Conversation
There was a problem hiding this 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
if ($event->getResponse()->getRenderAs() === TemplateResponse::RENDER_AS_USER) { | ||
$this->initialStateService->provideLazyInitialState(Application::APP_ID, 'shortcutsDisabled', function () { | ||
if ($this->userSession->getUser()) { | ||
$uid = $this->userSession->getUser()->getUID(); |
Check notice
Code scanning / Psalm
PossiblyNullReference
There was a problem hiding this 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
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Joas Schilling <coding@schilljs.com>
…earch and menu control Signed-off-by: Joas Schilling <coding@schilljs.com>
74b4c19
to
5267ea2
Compare
Rebased after #33733 And now with a global OCP method as discussed in nextcloud/contacts#2827 (comment) and chat |
Signed-off-by: Joas Schilling <coding@schilljs.com>
This is a pre-requirement for nextcloud/spreed#7563
Fix #34079