Fixed issue #1531: Inserting space character in translations (in Overviews menu item and User menu) not possible.

This commit is contained in:
Thorsten Eckel 2018-06-14 12:52:04 +02:00
parent 8af6e2b9eb
commit a4d000cda5

View file

@ -207,7 +207,7 @@ class _i18nSingleton extends Spine.Module
return string if !string
if App.Config.get('translation_inline')
return '<span class="translation" onclick="arguments[0].stopPropagation(); return false" contenteditable="true" title="' + App.Utils.htmlEscape(string) + '">' + App.Utils.htmlEscape(@translate(string)) + '</span>'
return '<span class="translation" onkeydown="arguments[0].stopPropagation(); return true" onclick="arguments[0].stopPropagation(); return false" contenteditable="true" title="' + App.Utils.htmlEscape(string) + '">' + App.Utils.htmlEscape(@translate(string)) + '</span>'
translated = @translate(string, args, true, true)