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

fix(keyboard): only ignore non-modifier events on inputs #564

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

nikku
Copy link
Member

@nikku nikku commented Aug 27, 2021

This allows us to handle undo, redo and other CTRL/CMD guarded events in a way expected by users.

Related to bpmn-io/form-js#153 (comment) and likely the safest, most intuitive default behavior.

This allows us to handle undo, redo and other CTRL/CMD guarded events in
a way expected by users.
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Aug 27, 2021
@nikku nikku requested review from barmac, MaxTru and pinussilvestrus and removed request for barmac August 27, 2021 07:53
@fake-join fake-join bot merged commit 33caf6a into develop Aug 27, 2021
@fake-join fake-join bot deleted the cmd-ctrl-modfier-cool branch August 27, 2021 08:12
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Aug 27, 2021
Copy link
Member

@barmac barmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is super cool!

nikku pushed a commit that referenced this pull request Oct 13, 2021
This reverts #564 to
and replaces it with a fine-grained utility to opt-into processing
of input-triggered keyboard events.

To react to a `CTRL/CMD+` shortcut the input triggering it must
be wrapped in a `[input-handle-modified-keys]` directive like so:

```html
<div input-handle-modified-keys="z,y">
  <input></input>
</div>
```

Related to bpmn-io/bpmn-js#1493
nikku pushed a commit that referenced this pull request Oct 13, 2021
This reverts #564
and replaces it with a fine-grained utility to opt-into processing
of input-triggered keyboard events.

To react to a `CTRL/CMD+` shortcut the input triggering it must
be wrapped in a `[input-handle-modified-keys]` directive like so:

```html
<div input-handle-modified-keys="z,y">
  <input></input>
</div>
```

Related to bpmn-io/bpmn-js#1493
nikku pushed a commit that referenced this pull request Oct 13, 2021
This reverts #564
and replaces it with a fine-grained utility to opt-into processing
of input-triggered keyboard events.

To react to a `CTRL/CMD+` shortcut the input triggering it must
be wrapped in a `[input-handle-modified-keys]` directive like so:

```html
<div input-handle-modified-keys="z,y">
  <input></input>
</div>
```

Related to bpmn-io/bpmn-js#1493
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

Successfully merging this pull request may close these issues.

3 participants