From 868ab45c98bd8d1ec97b2fcfc2aea7d260240bae Mon Sep 17 00:00:00 2001 From: Adrian Wielgosik Date: Wed, 24 Apr 2024 20:15:24 +0200 Subject: [PATCH] avm2: Add Stage.softKeyboardRect --- core/src/avm2/globals/flash/display/Stage.as | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/avm2/globals/flash/display/Stage.as b/core/src/avm2/globals/flash/display/Stage.as index 532b926de142..a0d6647baf18 100644 --- a/core/src/avm2/globals/flash/display/Stage.as +++ b/core/src/avm2/globals/flash/display/Stage.as @@ -235,6 +235,14 @@ package flash.display { public native function get stageFocusRect():Boolean; public native function set stageFocusRect(value:Boolean):void; + [API("670")] + public function get softKeyboardRect() : Rectangle { + stub_getter("flash.display.Stage", "softKeyboardRect"); + // This is technically a valid implementation most of the time, + // as 0x0 Rect is the expected value with no soft keyboard. + return new Rectangle(0, 0, 0, 0); + } + public native function get allowsFullScreen():Boolean; public native function get allowsFullScreenInteractive():Boolean;