From 0ec25eff2a6ed7b9a3aad690c920aee05fc66343 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 17 Oct 2022 15:56:42 +0200 Subject: [PATCH] chore(nc-gui): remove unnecessary conditions --- packages/nc-gui/components/general/Tooltip.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/general/Tooltip.vue b/packages/nc-gui/components/general/Tooltip.vue index 5a7798e8e6..5ea2053d8f 100644 --- a/packages/nc-gui/components/general/Tooltip.vue +++ b/packages/nc-gui/components/general/Tooltip.vue @@ -23,7 +23,8 @@ onKeyStroke( (e) => e.key === modifierKey, (e) => { e.preventDefault() - if (modifierKey && isHovering.value) { + + if (isHovering.value) { showTooltip.value = true } @@ -36,10 +37,8 @@ onKeyStroke( (e) => e.key === modifierKey, (e) => { e.preventDefault() - if (modifierKey) { - showTooltip.value = false - } + showTooltip.value = false isKeyPressed.value = false }, { eventName: 'keyup' },