From 68ef59136e5a491366613465495e007de4c7f161 Mon Sep 17 00:00:00 2001 From: meriadec Date: Tue, 6 Feb 2018 11:06:13 +0100 Subject: [PATCH] Trigger Tabbable also with space --- src/components/base/Box/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/base/Box/index.js b/src/components/base/Box/index.js index 956e6c43..1efadbae 100644 --- a/src/components/base/Box/index.js +++ b/src/components/base/Box/index.js @@ -98,7 +98,7 @@ export class Tabbable extends PureComponent { handleBlur = () => this.setState({ isFocused: false }) handleKeydown = (e: SyntheticKeyboardEvent) => { - if (e.which === 13 && this.state.isFocused && this.props.onClick) { + if ((e.which === 13 || e.which === 32) && this.state.isFocused && this.props.onClick) { this.props.onClick(e) } }