refectored: esc key to prepare back button
This commit is contained in:
parent
1987e2a0a4
commit
d84ec16c5d
11
main.js
11
main.js
|
@ -2086,10 +2086,8 @@ function executecommand(command)
|
|||
}
|
||||
}
|
||||
|
||||
function mainkeydownhandler()
|
||||
function esc(event)
|
||||
{
|
||||
if (event.key == "Escape")
|
||||
{
|
||||
if (!searchdialog.hidden)
|
||||
{
|
||||
event.preventDefault();
|
||||
|
@ -2110,6 +2108,13 @@ function mainkeydownhandler()
|
|||
{
|
||||
togglepreview();
|
||||
}
|
||||
}
|
||||
|
||||
function mainkeydownhandler()
|
||||
{
|
||||
if (event.key == "Escape")
|
||||
{
|
||||
esc(event);
|
||||
}
|
||||
else if (!searchdialog.hidden && (event.key == "Tab" || event.keyCode == "40" || event.keyCode == "38"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue