INNER CODE UNIT · Python

toggle_tab_enablement

antoniorodr/cronboard · src/cronboard/app.py:207

    def toggle_tab_enablement(self) -> None:
        self.tab_disabled: bool = not self.tab_disabled

    def on_key(self, event: events.Key) -> None:
        """Handles key presses.

        Args:
            event: events.Key object. Identifies the key pressed.
        """

        if event.key != "tab":
            return

        if self.tab_disabled:
            event.prevent_default()
            return

        if is_form_element(self.focused):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…