[latex3-commits] [git/LaTeX3-latex3-pdfresources] radiobuttons: submit action nearly finished (7c49b29)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Jun 8 19:57:29 CEST 2021
Repository : https://github.com/latex3/pdfresources
On branch : radiobuttons
Link : https://github.com/latex3/pdfresources/commit/7c49b299a06dbd708ed0fadcc143c5e60edf52d6
>---------------------------------------------------------------
commit 7c49b299a06dbd708ed0fadcc143c5e60edf52d6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Jun 8 19:57:29 2021 +0200
submit action nearly finished
>---------------------------------------------------------------
7c49b299a06dbd708ed0fadcc143c5e60edf52d6
l3pdffield-action.dtx | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/l3pdffield-action.dtx b/l3pdffield-action.dtx
index 66b54de..d3a390a 100644
--- a/l3pdffield-action.dtx
+++ b/l3pdffield-action.dtx
@@ -512,6 +512,23 @@
}
}
+\keys_define:nn { pdffield }
+ {
+ submit .code:n =
+ {
+ \cs_if_exist:cTF { @@_action_submit_#1: }
+ {
+ \use:c { @@_action_submit_#1: }
+ \pdfannot_dict_put:nnx{widget}
+ {A}
+ {\tl_use:c { c_@@_action_submit_#1_tl } }
+ }
+ {
+ \msg_warning:nnnn{pdffield}{action-name-undefined}{submit}{#1}
+ }
+ }
+ }
+
\keys_define:nn { pdffield }
{
import .code:n =
@@ -637,6 +654,7 @@
% \begin{macro}{\pdffield_reset_new:nn}
% \begin{macrocode}
\cs_set_eq:NN \pdffield_reset_new:nn \@@_action_reset_new:nn
+\cs_set_eq:NN \pdffield_submit_new:nnn \@@_action_submit_new:nn
%</package>
% \end{macrocode}
% \end{macro}
More information about the latex3-commits
mailing list.