Skip to content

ctrl+tab doesn't fire #507

@donnydarko

Description

@donnydarko

I want to use ctrl+tab in my electronjs app. So it is not a browser to interrupt with tab changing shortcut. However when I'm inside a text area it doesn't fire at all. Other shortcuts without tab do. How do I bind the whole document ?

<script>
    Mousetrap.bind(['command+tab', 'ctrl+tab'], function() {
       alert('command tab or control tab);

        // return false to prevent default browser behavior
        // and stop event from bubbling
        return false;
    });
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions