Skip to content

Should a keybinding without modifiers only fire when no modifiers are pressed? #183

@michael

Description

@michael

Currently we have the special situation that shift is activated on iOS because of auto capitalization, so we need to bind an extra keybinding.

{
enter: [commands.break_text_node, commands.insert_default_node],
// In case of a node cursor, fall back to inserting a default node. This is needed
// because on iOS selecting a node cursor triggers auto capitalization (shift pressed)
'shift+enter': [commands.add_new_line, commands.insert_default_node],
}

We could change the semantics that when no modifiers are present, that the keybinding also matches regardless of any modifiers pressed.

Just not sure if this will create other problems, hence the issue to think this through some more.

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