Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1401)

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 2963413002: Add ability to select all using keyboard (Ctrl+A) in PDF forms. (Closed)
Patch Set: Rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 6d1dacba3d77ec924ae2a1a9185b5e35c0685e1f..f71ef7ce71f8b2ccb87dc7e2326c1967ee9fe648 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -2435,6 +2435,9 @@ bool PDFiumEngine::HasPermission(DocumentPermission permission) const {
}
void PDFiumEngine::SelectAll() {
+ if (in_form_text_area_)
+ return;
+
SelectionChangeInvalidator selection_invalidator(this);
selection_.clear();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698