Add hot keys to opening apps

This commit is contained in:
rotimi_best
2021-05-31 11:28:46 +03:00
parent d22bb7d0e3
commit 811c7c59af
5 changed files with 114 additions and 65 deletions
+7 -4
View File
@@ -4,11 +4,15 @@
export let disabled = false;
export let selected = false;
export let value;
export let title;
export let toolTipProps = {
title: "",
hotkeys: [],
};
function handleClick() {
onClick(value);
}
console.log("toolTipProps", toolTipProps);
</script>
<style lang="scss">
@@ -38,12 +42,11 @@
}
</style>
<ToolTip title={title}>
<ToolTip title={toolTipProps.title} hotkeys={toolTipProps.hotkeys}>
<button
class={`root ${selected && 'active'}`}
{disabled}
on:click={handleClick}>
<slot />
</button>
</ToolTip>
</ToolTip>