-
Notifications
You must be signed in to change notification settings - Fork 11
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
AIR 27 - Alt+Enter toggles fullscreen; behavior not cancelable #24
Comments
Essential feature. Need a way to disable or override such behavior. |
Just noticed this issue -> the Alt-Enter behaviour is coming from Direct3D 11, before we receive the key down message from Windows. So to disable this behaviour we have to turn it off completely. For people who might want this behaviour, I would suggest they handle the Alt-Enter keystroke per the above and then set the application into full-screen mode via the AIR APIs. So .. just checking for anyone who's commented on this thread - would you be okay with us disabling the Alt-Enter behaviour at the DirectX layer? (Well, we'll be putting this change in, unless folk really want it to be handled via a separate mechanism such as in the app descriptor file...) |
@ajwfrost |
Just checked this, and it seems to work:
Note, there is still no impact of 'preventDefault' for a key event.. but hopefully it's no longer needed! thanks |
@ajwfrost |
Fixed with AIR 33.1.1.575+. |
Problem Description
Beginning in AIR 27, holding Alt and pressing Enter (or Numpad-Enter) toggles a Windows app's fullscreen state. Installing a
KEY_DOWN
event listener and callingEvent.preventDefault()
doesn't prevent this behavior.Tracker link: https://tracker.adobe.com/#/view/AIR-4198470
Steps to Reproduce
Build a Windows app with AIR 27. Hold Alt and press the Enter key.
The app will toggle its fullscreen state. This behavior cannot be canceled with
Event.preventDefault
:The text was updated successfully, but these errors were encountered: