Highlighted

AIR 27 - Alt-Enter toggles fullscreen; behavior not preventable

Community Beginner ,
Sep 27, 2017

Copy link to clipboard

Copied

I'm seeing new, undesirable behavior in AIR 27. Holding the Alt key and pressing Enter (or Numpad-Enter) will toggle an application's fullscreen mode. (This wasn't the case with AIR 26.)

This behavior does not seem to be preventable; installing a keydown listener and calling preventDefault() does not prevent the behavior from happening.

stage.addEventListener(KeyboardEvent.KEY_DOWN, function (e :flash.events.KeyboardEvent) :void {
   if ((e.keyCode == Keyboard.ENTER && e.altKey) ||
        (e.keyCode == Keyboard.NUMPAD_ENTER && e.altKey)) {
       e.preventDefault();
   }
}, true);

Am I correct that this is a regression in AIR 27? Is there a workaround?

TOPICS
Performance issues

Views

440

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

AIR 27 - Alt-Enter toggles fullscreen; behavior not preventable

Community Beginner ,
Sep 27, 2017

Copy link to clipboard

Copied

I'm seeing new, undesirable behavior in AIR 27. Holding the Alt key and pressing Enter (or Numpad-Enter) will toggle an application's fullscreen mode. (This wasn't the case with AIR 26.)

This behavior does not seem to be preventable; installing a keydown listener and calling preventDefault() does not prevent the behavior from happening.

stage.addEventListener(KeyboardEvent.KEY_DOWN, function (e :flash.events.KeyboardEvent) :void {
   if ((e.keyCode == Keyboard.ENTER && e.altKey) ||
        (e.keyCode == Keyboard.NUMPAD_ENTER && e.altKey)) {
       e.preventDefault();
   }
}, true);

Am I correct that this is a regression in AIR 27? Is there a workaround?

TOPICS
Performance issues

Views

441

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 27, 2017 0
Community Beginner ,
Sep 27, 2017

Copy link to clipboard

Copied

I've opened a bug here: Tracker

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 27, 2017 1
Adobe Employee ,
Sep 27, 2017

Copy link to clipboard

Copied

Thank you for the bug report (https://tracker.adobe.com/#/view/AIR-4198470​).  We'll take a look asap, there were no planned changes with this behavior.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 27, 2017 0