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

Remove form field via keyboard #438

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

pinussilvestrus
Copy link
Contributor

Related to #437

Check it out via https://demo-437-remove-via-keyboard--camunda-form-playground.netlify.app/.

What immediately comes through: to make it fly, we'd need navigation via keyboard (cf. #173).

Kapture 2022-11-29 at 16 32 07

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Nov 29, 2022
@pinussilvestrus
Copy link
Contributor Author

I'd love to hear your feedback @Skaiir @vsgoulart @RomanKostka @christian-konrad

@pinussilvestrus
Copy link
Contributor Author

pinussilvestrus commented Nov 29, 2022

We should probably simply limit the keyboard binding of the editor to the editor container (via keyboard config). It's currently binded to the document.

This could be handled in the camunda/form-playground integration.

@vsgoulart
Copy link
Contributor

@pinussilvestrus I like it a lot! I would say this is a very power user feature, so I would give it a lower priority if we compare to other features. But if the implementation is very easy I think it's worth it to merge.

Do we have any shortcuts cheatsheet in the playground?

@pinussilvestrus
Copy link
Contributor Author

Do we have any shortcuts cheatsheet in the playground?

I don't think so. We have a module that takes care of these. The playground itself doesn't have any other keyboard bindings (yet). The panel toggles are implemented in the Modeler products separately.

@pinussilvestrus
Copy link
Contributor Author

Feedback via Slack from @Skaiir

If there is one thing I would say it's that it's maybe a little bit too easy for the deletion to get captured by the main window. Basically the editor is always active, and unless we're focusing something that will handle the keyboard input, the delete action will trigger. A good example of this problem can be seen when pressing delete when focusing a taglist tag.

@pinussilvestrus pinussilvestrus added ready Ready to be worked on and removed in progress Currently worked on labels Dec 2, 2022
@nikku
Copy link
Member

nikku commented Dec 4, 2022

From my point of view the overall interaction pattern (including playgrounds and stuff) is blocked by bpmn-io/diagram-js#661. To properly handle keyboard shortcuts we must be browser focus aware and move from explicit keyboard bindings (i.e. "document bound") to implicit bindings, based on browser focus. Cf. bpmn-io/diagram-js#662 (comment) how that works (implicit keyboard focus) in the playground.

Generally I 100% support keyboard navigation. The core at least should invite both clickclick and power users.

@pinussilvestrus
Copy link
Contributor Author

Let's move this one to backlog until we decide to act upon 👍 /cc @christian-konrad

@pinussilvestrus pinussilvestrus added backlog Queued in backlog and removed ready Ready to be worked on labels Dec 5, 2022
@pinussilvestrus pinussilvestrus removed their assignment Nov 9, 2023
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Niklas Kiefer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@nikku nikku added spring cleaning Could be cleaned up one day ux labels Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog spring cleaning Could be cleaned up one day ux
Development

Successfully merging this pull request may close these issues.

None yet

4 participants