0

Remove links from tab order in Print Preview

Bug: 1084957
Change-Id: Ida67162676737644e987a43aaff5cf713a75301e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2212221
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Ankit Kumar 🌪️ <ankk@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#771318}
This commit is contained in:
Ankit Kumar
2020-05-22 08:09:10 +00:00
committed by Commit Bot
parent fbed9529c1
commit 55015efd50
2 changed files with 3 additions and 3 deletions

@ -2707,7 +2707,8 @@ void PDFiumEngine::LoadForm() {
kFormHighlightColor);
FPDF_SetFormFieldHighlightAlpha(form(), kFormHighlightAlpha);
if (base::FeatureList::IsEnabled(features::kTabAcrossPDFAnnotations)) {
if (base::FeatureList::IsEnabled(features::kTabAcrossPDFAnnotations) &&
!client_->IsPrintPreview()) {
static constexpr FPDF_ANNOTATION_SUBTYPE kFocusableAnnotSubtypes[] = {
FPDF_ANNOT_LINK, FPDF_ANNOT_HIGHLIGHT, FPDF_ANNOT_WIDGET};
FPDF_BOOL ret = FPDFAnnot_SetFocusableSubtypes(

@ -146,8 +146,7 @@ void PreviewModeClient::FormTextFieldFocusChange(bool in_focus) {
}
bool PreviewModeClient::IsPrintPreview() {
NOTREACHED();
return false;
return true;
}
float PreviewModeClient::GetToolbarHeightInScreenCoords() {