1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-18 14:04:04 +00:00

Housekeeping

This commit is contained in:
2023-02-15 19:27:51 +01:00
parent 5f358885a3
commit 838c8d2ffb
38 changed files with 322 additions and 270 deletions

View File

@ -0,0 +1,13 @@
import environment from '$lib/stores/environment';
import { get } from 'svelte/store';
export function controlKeyDown(event) {
const env = get(environment);
// @ts-ignore
if (env?.platform === 'darwin') {
return event?.metaKey;
}
else {
return event?.ctrlKey;
}
}