Skip to content

Commit

Permalink
avm2: Add Stage.softKeyboardRect
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian17 committed Apr 24, 2024
1 parent f30c04e commit 868ab45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/src/avm2/globals/flash/display/Stage.as
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 868ab45

Please sign in to comment.