Skip to content
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

Shortcut to access notification window #392

Closed
refekt opened this issue Jan 12, 2019 · 11 comments
Closed

Shortcut to access notification window #392

refekt opened this issue Jan 12, 2019 · 11 comments

Comments

@refekt
Copy link

refekt commented Jan 12, 2019

This would be a quick way to open the notification window

@rom1v
Copy link
Collaborator

rom1v commented Jan 12, 2019

Is there any keyevent which opens it?

@rom1v rom1v changed the title Request: Shortcut to access notification window Shortcut to access notification window Jan 12, 2019
@refekt
Copy link
Author

refekt commented Jan 12, 2019

I'm not entirely sure. I am not an avid programmer, but I have seen it done on emulators like Nox Player.

@tbkrtz
Copy link

tbkrtz commented Jan 25, 2019

shortcuts for notifications and quicksettings would be great :-)

a keyevent for notification or quicksettings don't exist, but its working with the adb shell:
Expand status bar:

adb shell service call statusbar 1

Collapse status bar:

adb shell service call statusbar 2

i hope this is helpful.

@rom1v
Copy link
Collaborator

rom1v commented Jan 25, 2019

rom1v added a commit that referenced this issue Feb 26, 2019
Use Ctrl+n to expand, Ctrl+Shift+n to collapse.

Fixes <#392>
@rom1v
Copy link
Collaborator

rom1v commented Feb 26, 2019

I just implemented it on dev branch.

Ctrl+n expands, Ctrl+Shift+n collapses.

@rom1v rom1v closed this as completed Feb 26, 2019
@npes87184
Copy link
Contributor

@rom1v

Well, it isn't a great idea to implement this shortcut, IMO. Unlike power button, volume button, etc, notification panel can simply be expanded by pull down the top area through mouse. This shortcut will make protocol more complex and not elegant. If someone in the future request a shortcut for turning on and turning off bluetooth, wifi, etc. We still keep implementing it?

Sorry for the differing views.

Sincerely,
Yu-Chen

@rom1v
Copy link
Collaborator

rom1v commented Feb 27, 2019

@npes87184

Thank you for your feedback.

The idea is not to implement every shortcuts requested by any people. The notification panel is often used, and bringing it down with the mouse is "costly". I faced the problem recently (I don't use scrcpy that much), and remembered that feature request, so I implemented it.

I see this shortcut for expanding the notification panel a bit like Ctrl+s for APP_SWITCH: you can do it with the mouse (at least when the buttons are not physical) but it's a useful to have a direct access (for me, direct access to notification panel is even more useful than APP_SWITCH).

Cheers

@npes87184
Copy link
Contributor

npes87184 commented Feb 27, 2019

@rom1v

Good point! Also Thank you for your explaining.

@pundoo
Copy link

pundoo commented Mar 25, 2019

Sorry for bumping on a closed thread but, this isn't working when on Lock Screen. (or was that intended?)

@rom1v
Copy link
Collaborator

rom1v commented Mar 25, 2019

scrcpy just calls the AOSP StatusBarManager.expandNotificationsPanel(). If this function does not expand the notification panel on lock screen, it is probably intended.

@Peter-maximus
Copy link

unfortunately doesn't work on oneplus 3:

error: could not invoke mehtod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants