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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user