mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
d0dbc395a5
Relying on any native implementation of window.KeyEvent is unreliable. The two specs listed in the comments for this method are not the same and Firefox now has DOM_VK_ENTER and DOM_VK_RETURN which are equivalent to 13 and 14 respectively. The key on the right side of my home row triggers 14 using native window.KeyEvent in Firefox, where Chrome uses our defined constants and returns 13. This fix ensures the same values for all browsers. Change-Id: I12b2f5d674bdf13526577cb81d0505b608f2846c |
||
---|---|---|
.docs | ||
demos | ||
maintenance | ||
modules | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
CODING.md | ||
LICENSE.txt | ||
README.txt | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
VisualEditor provides a visual editor for wiki pages. It is written in JavaScript and runs in a web browser. It uses the Parsoid parser to convert wikitext documents to annotated HTML which the VisualEditor is able to load, modify and emit back to Parsoid at which point it is converted back into wikitext. For more information about these projects, check out the wiki: * http://www.mediawiki.org/wiki/VisualEditor * http://www.mediawiki.org/wiki/Parsoid