fixed: removed back handler
This commit is contained in:
parent
b5f784aa94
commit
4621a0aa0b
16
main.js
16
main.js
|
@ -1176,7 +1176,7 @@ function initshortcuts()
|
||||||
if (!commands.find(c => c.hint == hint))
|
if (!commands.find(c => c.hint == hint))
|
||||||
{
|
{
|
||||||
var shortcut = n.content.match(/shortcut: (.*)/)[1];
|
var shortcut = n.content.match(/shortcut: (.*)/)[1];
|
||||||
commands.unshift({
|
commands.push({
|
||||||
hint: hint,
|
hint: hint,
|
||||||
shortcut: shortcut,
|
shortcut: shortcut,
|
||||||
action: function()
|
action: function()
|
||||||
|
@ -1201,20 +1201,6 @@ function init()
|
||||||
window.onbeforeunload = checksaved;
|
window.onbeforeunload = checksaved;
|
||||||
window.onclick = focuseditor;
|
window.onclick = focuseditor;
|
||||||
|
|
||||||
addfakehistory();
|
|
||||||
window.onpopstate = function(evt)
|
|
||||||
{
|
|
||||||
addfakehistory();
|
|
||||||
if (!searchdialog.hidden)
|
|
||||||
{
|
|
||||||
esc(evt);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
loadprevious();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
initsnippets();
|
initsnippets();
|
||||||
|
|
||||||
currenttag = "";
|
currenttag = "";
|
||||||
|
|
Loading…
Reference in New Issue