Merge pull request #2205 from brendandahl/find-next

Handle ctrl/cmd+g for html findbar.
This commit is contained in:
Yury Delendik 2012-10-05 17:05:45 -07:00
commit 806b962b29

View File

@ -2867,6 +2867,18 @@ window.addEventListener('keydown', function keydown(evt) {
} }
} }
// CTRL or META with or without SHIFT.
if (cmd == 1 || cmd == 8 || cmd == 5 || cmd == 12) {
switch (evt.keyCode) {
case 71: // g
if (!PDFView.supportsIntegratedFind) {
PDFFindBar.dispatchEvent('again', cmd == 5 || cmd == 12);
handled = true;
}
break;
}
}
if (handled) { if (handled) {
evt.preventDefault(); evt.preventDefault();
return; return;