Browse Source

chore(nc-gui): remove unnecessary conditions

pull/4121/head
braks 2 years ago
parent
commit
0ec25eff2a
  1. 7
      packages/nc-gui/components/general/Tooltip.vue

7
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' },

Loading…
Cancel
Save