-
-
Notifications
You must be signed in to change notification settings - Fork 626
-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
Report changes to screen orientation #4574
Comments
Comment 1 by jteh on 2014-10-26 02:28 One concern with having a shortcut for this is that the user may not actually know if they've flipped their screen, so they won't know to check. If they do know, they can probably see the screen anyway and/or have someone sighted watching. Therefore, can you explain how having such a command would help? I guess there's a way to retrieve this information from Windows, but I have no idea how. |
Comment 2 by surfer0627 on 2014-10-26 09:06 |
Comment 3 by jteh on 2014-10-26 10:06 |
Comment 4 by blindbhavya on 2014-10-26 11:31 |
Comment 5 by blindbhavya on 2014-10-26 11:33 |
Comment 6 by blindbhavya on 2014-10-26 11:34 |
Comment 7 by jteh on 2014-10-26 11:59 I think it'd be fair to report screen orientation as it changes, though I'm not actually sure this is possible. Morphing ticket accordingly. |
Comment 8 by surfer0627 (in reply to comment 3) on 2014-10-26 15:12
Sorry, I misunderstand your meaning and change the summary and component.
|
Comment 10 by vgjh2005 on 2014-12-27 16:06 |
Comment 12 by nvdakor (in reply to comment 10) on 2014-12-28 07:27
No. Control+Windows+left and right arrows are used in Windows 10 to switch among virtual desktops. |
Hi, Coming back to this issue... Figured it out: you need to look for WM_DISPLAYCHANGE message. In order to determine if this is primary or secondary orientation, we need to use Windows API to retrieve relevant data structure. Solution algorithm:
Use cases:
Questions before committing:
I've assigned "good for new dev" as this is quite trivial to implement and would teach new developers how to process window messages and to think about general versus specialized solutions. Thanks. |
We already have a message window which uses windowUtils.CustomWindow. We could just use that to listen for these messages. See core.py at around line 249. It doesn't currently have a windowProc method, but I'm happy for one to be added. This does look a bit odd because it's defined in the middle of core.main, but we only do this so we can import windowUtils late. |
My friend told me a solution to prevent screen rotation.
Notes: If you don't find your device on system tray. Please try the following steps:
|
Hi, For PR writers: Enhanced Touch Gestures add-on has a basic implementation for this feature. As noted in #4612, I recommend combining custom window issues into a PR package (preferably separate commits for each issue). Thanks. |
Reported by surfer0627 on 2014-10-25 17:22
Hi,
This is a trivial issue.
Take Internet Explorer for example.
Sometimes, I press ctrl+alt+arrow, which will rotate my screen. But, I could not reproduce it every time.
== Screen rotation commands:
Press one of the arrow keys while pressing ^ Ctrl+? Alt. The left arrow and right arrow keys will rotate the screen 90 degrees.
The down arrow key will flip the screen upside down.
The up arrow key will return the screen to normal.
I don't know the screen orientation, so I use the following steps to check.
Thanks.
The text was updated successfully, but these errors were encountered: