diff options
Diffstat (limited to 'source/pdf/js/util.js')
-rw-r--r-- | source/pdf/js/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/pdf/js/util.js b/source/pdf/js/util.js index 03e4a61b..dd58dff7 100644 --- a/source/pdf/js/util.js +++ b/source/pdf/js/util.js @@ -717,6 +717,10 @@ function AFSpecial_KeystrokeEx(fmt) { i++; } + // If there are characters left over in the value, it's not a match. + if (val.length > 0) + event.rc = false; + if (event.rc) event.value = res; else if (event.willCommit) |