~emersion/gamja

095006e9618a092f8163649b51014ed552417bc5 — Simon Ser 5 months ago 0d36e8a
Don't focus composer on key press if modifier is also pressed
1 files changed, 5 insertions(+), 0 deletions(-)

M components/composer.js
M components/composer.js => components/composer.js +5 -0
@@ 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