mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Don't focus composer on key press if modifier is also pressed
This commit is contained in:
parent
0d36e8a3fc
commit
095006e961
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ export default class Composer extends Component {
|
|||
return;
|
||||
}
|
||||
|
||||
// If a modifier is pressed, reserve for key bindings.
|
||||
if (event.altKey || event.ctrlKey || event.metaKey) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Ignore events that don't produce a Unicode string. If the key event
|
||||
// result in a character being typed by the user, KeyboardEvent.key
|
||||
// will contain the typed string. The key string may contain one
|
||||
|
|
Loading…
Reference in a new issue