Skip to content

GD-388: Remove key modifiery arguments from the simulate key press/ed release methods #388

@MikeSchulze

Description

@MikeSchulze

Feature Type

Scene runner enhancement

Problem/Use Case

In the following:

ISceneRunner SimulateKeyPressed(Key keyCode, bool shift = false, bool control = false);

ISceneRunner SimulateKeyPress(Key keyCode, bool shift = false, bool control = false);

ISceneRunner SimulateKeyRelease(Key keyCode, bool shift = false, bool control = false);

Add support for meta.

Proposed Solution

ISceneRunner SimulateKeyPressed(Key keyCode);

ISceneRunner SimulateKeyPress(Key keyCode);

ISceneRunner SimulateKeyRelease(Key keyCode);

Alternatives Considered

No response

Impact and Benefits

Can use the same API to simulate meta presses.

Implementation Notes

See godot-gdunit-labs/gdUnit4#1056

Examples and References

No response

Contribution

  • I'm willing to contribute code for this feature
  • I'm willing to help with testing/feedback
  • I'm willing to help with documentation
  • I would just like to request this feature

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvementgdunit4.apiIssue is related to the `gdunit4.api`
No fields configured for Improvement.

Projects

Status
No status

Relationships

None yet

Development

No branches or pull requests

Issue actions