Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Pressing Opt-Space scrolls the page down #19

Closed
sophiebits opened this issue Feb 22, 2016 · 3 comments
Closed

Pressing Opt-Space scrolls the page down #19

sophiebits opened this issue Feb 22, 2016 · 3 comments

Comments

@sophiebits
Copy link
Contributor

If you type Opt-Space to insert a nbsp (on http://facebook.github.io/draft-js/, for example) in Chrome Mac, the page scrolls down a screenful but it probably shouldn't move. Missing preventDefault() somewhere probably.

@sophiebits sophiebits changed the title Pressing Opt-Space with text selected scrolls the page down Pressing Opt-Space scrolls the page down Feb 22, 2016
@bryanbierce
Copy link

Hey, I'd love to try fixing this. I took a quick look and am thinking it would need to to be caught in the defaultKeyBindings and that it also might require a check for the option key modifier in the KeyBindingUtil am I on the right track?

@hellendag
Copy link

It could work well to use a key binding for this, yeah. KeyBindingUtil.hasCommandModifier could be useful here, though I don't know the expected behavior for Ctrl+Space in Windows.

Before using a keybinding, I suggest using a jsfiddle for a minimal repro to determine whether this is a bug in ContentEditable or within Draft.

@sophiebits
Copy link
Contributor Author

Yeah – this doesn't happen with a plain contenteditable so it's worth first figuring out what Draft does that causes this.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants