Commit cd90fd10 authored by Jakob Moser's avatar Jakob Moser
Browse files

Remove onkeypress (Enter still works, Space does not need to work, I think)

parent 6266163e
Loading
Loading
Loading
Loading
+0 −8
Changes for frontend/TabBar.mjs: 0 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -8,10 +8,6 @@ const TabBar = {
            // { id: 'popular', label: 'Beliebt' } // 'Beliebt' als Option
        ]

        function onViewChange(id) {
            m.route.set("/" + id)
        }

        return m(
            "div.tab-bar-container",
            tabs.map(tab => {
@@ -22,10 +18,6 @@ const TabBar = {
                        href: `/${tab.id}`,
                        role: "button", // Für Barrierefreiheit
                        tabindex: 0, // Für Tastaturnavigation
                        onkeypress: e => {
                            if (e.key === "Enter" || e.key === " ")
                                onViewChange(tab.id)
                        },
                    },
                    tab.label,
                )