DethAriel / ng-recaptcha

Angular component for Google reCAPTCHA
https://dethariel.github.io/ng-recaptcha/
MIT License
463 stars 122 forks source link

There is no way to know if a user pressed escape on the puzzle #293

Open timothyBrake opened 1 year ago

timothyBrake commented 1 year ago

Summary

I'm submitting a:

Description

There is currently no easy way to handle when the user sees the puzzle but then choses to close the popup by pressing e.g. escape or outside the puzzle popup.

There is no demo needed as there is no feature available to handle it like e.g. (cancelled).

Should be e.g.:

 <re-captcha 
              (cancelled)="newAwesomeHandler($event)"
              (errored)="onRecaptchaError($event)"
              errorMode="handled"
              size="invisible"
              (resolved)="resolvedInvisible($event)"
  ></re-captcha>
DethAriel commented 7 months ago

Hi @timothyBrake !

Is there a particular implementation strategy for adding such functionality that you have in mind and could thus recommend? From my current understanding of reCAPTCHA APIs, this isn't strictly possible to do in the scope of ng-recaptcha