Skip to content
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

Support for "non-reflexive" keyboard sequences #51

Open
jugglinmike opened this issue Dec 6, 2022 · 0 comments
Open

Support for "non-reflexive" keyboard sequences #51

jugglinmike opened this issue Dec 6, 2022 · 0 comments

Comments

@jugglinmike
Copy link
Contributor

As originally drafted (see gh-26), the "interaction.pressKeys" command supports one specific type of keyboard motion, where a series of keys are depressed in a sequential order, and then released in the reverse order. (I'm referring to this as a "reflexive" sequence; please let me know if there's a more appropriate term.)

During today's 2022-12-05 Community Group meeting, @mcking65 suggested that some commands cannot be expressed in these terms, giving the following example:

Depress "Insert", then depress "T", then release "T", then depress "T" again, then release "T", and finally release "Insert".

@jscholes reported that at least some of these commands can be expressed as a series of reflexive sequences, provided they are issued quickly enough. The above example could be expressed by entering the following sequence twice:

Depress "Insert", then depress "T", then release "T", and finally release "Insert".

However, we didn't feel that the counter-example rules out the potential need, so we're still looking for "non-reflexive" sequences that can't be rewritten in this way. API-level support may be appropriate even in the absence of such sequences because as @jscholes noted, any solution which depends on issuing commands "quickly enough" is prone to race conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant