Merge branch 'develop' of github.com:ether/etherpad-lite into develop
This commit is contained in:
commit
2fe31bc618
|
@ -38,6 +38,8 @@ exports.title = "Etherpad Lite";
|
||||||
* The app favicon fully specified url, visible e.g. in the browser window
|
* The app favicon fully specified url, visible e.g. in the browser window
|
||||||
*/
|
*/
|
||||||
exports.favicon = "favicon.ico";
|
exports.favicon = "favicon.ico";
|
||||||
|
exports.faviconPad = "../" + exports.favicon;
|
||||||
|
exports.faviconTimeslider = "../../" + exports.favicon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The IP ep-lite should listen to
|
* The IP ep-lite should listen to
|
||||||
|
|
|
@ -3562,7 +3562,7 @@ function Ace2Inner(){
|
||||||
inCallStackIfNecessary("handleKeyEvent", function()
|
inCallStackIfNecessary("handleKeyEvent", function()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (type == "keypress" || (isTypeForSpecialKey && keyCode == 13 /*return*/ ))
|
if (type == "keypress" || (isTypeForSpecialKey && keyCode == 13 || keyCode == 83 /*return*/ ))
|
||||||
{
|
{
|
||||||
// in IE, special keys don't send keypress, the keydown does the action
|
// in IE, special keys don't send keypress, the keydown does the action
|
||||||
if (!outsideKeyPress(evt))
|
if (!outsideKeyPress(evt))
|
||||||
|
@ -3575,7 +3575,6 @@ function Ace2Inner(){
|
||||||
{
|
{
|
||||||
outsideKeyDown(evt);
|
outsideKeyDown(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!stopped)
|
if (!stopped)
|
||||||
{
|
{
|
||||||
var specialHandledInHook = hooks.callAll('aceKeyEvent', {
|
var specialHandledInHook = hooks.callAll('aceKeyEvent', {
|
||||||
|
@ -3614,6 +3613,12 @@ function Ace2Inner(){
|
||||||
}, 0);
|
}, 0);
|
||||||
specialHandled = true;
|
specialHandled = true;
|
||||||
}
|
}
|
||||||
|
if ((!specialHandled) && isTypeForSpecialKey && keyCode == 83)
|
||||||
|
{
|
||||||
|
evt.preventDefault();
|
||||||
|
parent.parent.pad.collabClient.sendMessage({"type":"SAVE_REVISION"}); /* The parent.parent part of this is BAD and I feel bad.. It may break something */
|
||||||
|
specialHandled = true;
|
||||||
|
}
|
||||||
if ((!specialHandled) && isTypeForSpecialKey && keyCode == 9 && !(evt.metaKey || evt.ctrlKey))
|
if ((!specialHandled) && isTypeForSpecialKey && keyCode == 9 && !(evt.metaKey || evt.ctrlKey))
|
||||||
{
|
{
|
||||||
// tab
|
// tab
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
||||||
<link rel="shortcut icon" href="<%=settings.favicon%>">
|
<link rel="shortcut icon" href="<%=settings.faviconPad%>">
|
||||||
|
|
||||||
<link rel="resource" type="application/l10n" href="../locales.ini" />
|
<link rel="resource" type="application/l10n" href="../locales.ini" />
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
<link rel="shortcut icon" href="<%=settings.favicon%>">
|
<link rel="shortcut icon" href="<%=settings.faviconTimeslider%>">
|
||||||
<link rel="resource" type="application/l10n" href="../../locales.ini" />
|
<link rel="resource" type="application/l10n" href="../../locales.ini" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in New Issue