mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
In the reftest analyzer, make it possible to toggle "Circle differences" with the D key
It's currently possible to step through the test results using the <kbd>N</kbd> and <kbd>P</kbd> keys, and you can also switch between test and reference images with the <kbd>T</kbd> key. However if you want to highlight the differences, that can only be done by clicking. This has always annoyed me somewhat, so this patch adds support for toggling the differences view with the <kbd>D</kbd> key.
This commit is contained in:
parent
0237d5036a
commit
cbe097c0cb
1 changed files with 3 additions and 0 deletions
|
@ -464,6 +464,9 @@ window.onload = function() {
|
|||
val = 1;
|
||||
}
|
||||
document.querySelector('input[name="which"][value="' + val + '"]').click();
|
||||
} else if (event.which === 68) {
|
||||
// 'd' toggle differences
|
||||
document.getElementById("differences").click();
|
||||
} else if (event.which === 78 || event.which === 80) {
|
||||
// 'n' next image, 'p' previous image
|
||||
var select = gSelected;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue