fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for Firefox
[fnpeditor.git]
/
modules
/
visualEditor.js
diff --git
a/modules/visualEditor.js
b/modules/visualEditor.js
index
dc0b801
..
bd90b0a
100644
(file)
--- a/
modules/visualEditor.js
+++ b/
modules/visualEditor.js
@@
-47,7
+47,7
@@
rng.modules.visualEditor = function(sandbox) {
this.metaTable.on('keydown', '[contenteditable]', function(e) {
\r
console.log(e.which);
\r
if(e.which === 13) {
\r
this.metaTable.on('keydown', '[contenteditable]', function(e) {
\r
console.log(e.which);
\r
if(e.which === 13) {
\r
- if($(
'*:focus'
).hasClass('rng-visualEditor-metaItemKey')) {
\r
+ if($(
document.activeElement
).hasClass('rng-visualEditor-metaItemKey')) {
\r
metaTable.find('.rng-visualEditor-metaItemValue').focus();
\r
} else {
\r
var input = $('<input>');
\r
metaTable.find('.rng-visualEditor-metaItemValue').focus();
\r
} else {
\r
var input = $('<input>');
\r