Commit Graph
4 Commits
Author SHA1 Message Date
Jason Laster 0f89c25938 Bug 1560572 - Format Rust files. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D35557
2019-06-25 15:43:34 +00:00
Nicolas Chevobbe c48c5496a8 Bug 919711 - Add a CodeMirror inputStyle to make it accessible; r=bgrins.
This copies what's done in Chrome DevTools to make codeMirror more accessible.
A new input mode is added which overrides the default `textarea` one.

This makes the "Edit as HTML" feature usable for people relying on screen readers.
This may be used in the future in the console, where we could remove the legacy
console input and serve the CodeMirror instance for everyone.

Differential Revision: https://phabricator.services.mozilla.com/D24930
2019-04-05 13:43:10 +00:00
Nicolas Chevobbe c53c9b0c13 Bug 1530255 - Load keyMap files on demand; r=bgrins.
We use to include all the keyMap files in the
codeMirror bundle, but these files can be
pretty large, and are useless if the user did
not select a custom key mapping in the settings
panel.
This patch changes this to only load those files
when they are needed, either when a new editor
is created, or when the user changes the key mapping
preference. The files are only loaded once.

Differential Revision: https://phabricator.services.mozilla.com/D22977
2019-03-12 14:56:24 +00:00
Nicolas Chevobbe 05be70cf58 Bug 1527322 - Move the sourceeditor folder under devtools/client/shared; r=gl.
Differential Revision: https://phabricator.services.mozilla.com/D19641
2019-02-13 15:37:08 +00:00