From a5924cb8036eb59a9b64bfe8d39d3dfa266c70d0 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 15 Jun 2017 18:50:39 +0200 Subject: [PATCH] Make sure the initial title is set in the userDoc when creating a new pad --- www/common/common-title.js | 1 + www/slide/slide.js | 1 + 2 files changed, 2 insertions(+) diff --git a/www/common/common-title.js b/www/common/common-title.js index f5f793f6e..3b71ec63e 100644 --- a/www/common/common-title.js +++ b/www/common/common-title.js @@ -14,6 +14,7 @@ define(function () { var getHeadingText = cfg.getHeadingText || function () { return; }; var updateLocalTitle = function (newTitle) { exp.title = newTitle; + onLocal(); if (typeof cfg.updateLocalTitle === "function") { cfg.updateLocalTitle(newTitle); } else { diff --git a/www/slide/slide.js b/www/slide/slide.js index 9f919ecfa..731e5b8ee 100644 --- a/www/slide/slide.js +++ b/www/slide/slide.js @@ -205,6 +205,7 @@ define([ $(ifrw).on('keyup', function (e) { if (!Slide.shown) { return; } + if (e.ctrlKey) { return; } switch(e.which) { case 33: // pageup case 38: // up