Satisfy eslint

This commit is contained in:
Henrik Giesel 2021-08-03 06:12:04 +02:00
parent b6aa59f2c7
commit 73a6d2bd40

View File

@ -10,7 +10,7 @@ import { appendInParentheses } from "./helpers";
import { getCurrentField, forEditorField, i18n } from ".";
import pinIcon from "./pin-angle.svg";
function toggleStickyCurrentField() {
function toggleStickyCurrentField(): void {
const currentField = getCurrentField();
if (currentField) {
@ -20,13 +20,13 @@ function toggleStickyCurrentField() {
}
}
function toggleStickyAll() {
function toggleStickyAll(): void {
bridgeCommand("toggleStickyAll", (values: boolean[]) =>
forEditorField(values, (field, value) => field.labelContainer.setSticky(value))
);
}
export function activateStickyShortcuts() {
export function activateStickyShortcuts(): void {
registerShortcut(toggleStickyCurrentField, "F9");
registerShortcut(toggleStickyAll, "Shift+F9");
}