Add file picker for adding files to albums

This commit is contained in:
2021-11-27 16:42:41 +01:00
parent b7038be202
commit 5701b083c3
10 changed files with 240 additions and 77 deletions

View File

@@ -32,8 +32,12 @@ export const set_visible = vis => {
}
const keydown = e => {
if (document.activeElement.type && document.activeElement.type === "text") {
return // Prevent shortcuts from interfering with input fields
}
if (e.key === 'Escape') {
set_visible(false);
e.preventDefault()
return;
}
};
@@ -114,6 +118,5 @@ const keydown = e => {
flex-grow: 1;
flex-shrink: 1;
overflow: auto;
padding: 10px;
}
</style>