Skip to content
Snippets Groups Projects
Commit 9e0b1cc6 authored by Toufic Batache's avatar Toufic Batache
Browse files

Close right edit panel on "Enter" keyboard click

parent 9e630b62
No related branches found
No related tags found
1 merge request!137amélioration: Ajout de transition pour l'édition du cas type
Pipeline #8570 passed
......@@ -666,9 +666,16 @@
}
let validateBtnHeight = 0;
function onKeyDown(e) {
switch (e.keyCode) {
case 13: // 'Enter' key
if (displayMode.edit !== undefined) changeTestCaseToEditIndex(undefined)
}
}
</script>
<svelte:window bind:innerWidth={windowInnerWidth} />
<svelte:window bind:innerWidth={windowInnerWidth} on:keydown={onKeyDown} />
<svelte:head>
<title>Calculs | {data.title}</title>
</svelte:head>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment