aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/Keyboard/Keys/Key.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/Keyboard/Keys/Key.js')
-rw-r--r--app/src/Keyboard/Keys/Key.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/Keyboard/Keys/Key.js b/app/src/Keyboard/Keys/Key.js
index 7b4efcc..7374eab 100644
--- a/app/src/Keyboard/Keys/Key.js
+++ b/app/src/Keyboard/Keys/Key.js
@@ -119,6 +119,7 @@ export default function Key(props) {
setEditing(editing)
}
function handleSelectBehaviour(event) {
+ event.stopPropagation()
setEditing({
target: event.target,
targets: getSearchTargets('behaviour', value),
@@ -156,7 +157,10 @@ export default function Key(props) {
// @mouseleave="onMouseLeave"
>
{behaviour ? (
- <span className={styles['behaviour-binding']} onClick={handleSelectBehaviour}>
+ <span
+ className={styles['behaviour-binding']}
+ onClick={handleSelectBehaviour}
+ >
{behaviour.code}
</span>
) : null}