AjaxControlToolkit icon indicating copy to clipboard operation
AjaxControlToolkit copied to clipboard

Support keyboard paste (Ctrl-V) without an extra prompt

Open jieyueHuang opened this issue 4 years ago • 2 comments

The AJAX Control Toolkit <19.1.0>

The installation method

  • [ ] Installer
  • [ ] NuGet package
  • [YES ] A custom build from the source code

Minimal steps to reproduce the bug

1.open the browser "ie edge" or "Chrome" 2.ctrl-V to the control which used MaskedEditExtender

Actual result

throw a windows "Your browser security settings don't permit the automatic execution of paste operations. Please use the keyboard shortcut Ctrl+V instead."

Expected result

when i use ie, the context can be pasted without any windows throw.But when i use chrome or edge,an unexpected windows open.I hope it work like Ie.the context can be pasted without any window show

Browser(s) used

ie ie edge chrome

A site deployment method

  • [both ] VS development web-server,
  • [both ] IIS

jieyueHuang avatar Mar 13 '20 11:03 jieyueHuang

Current code: https://github.com/DevExpress/AjaxControlToolkit/blob/0a365c6fcf34c465c5ffb5bf2b1577debc6901ce/AjaxControlToolkit/Scripts/MaskedEdit.js#L1072-L1088

_ShowModalClipBoardInput is intentionally used in all browsers except IE.

Relevant SO thread: https://stackoverflow.com/q/2176861

I'm tagging this ticket as a possible enhancement for one of the future releases.

AlekseyMartynov avatar Mar 16 '20 11:03 AlekseyMartynov

@AlekseyMartynov: any progress on this feature?

msgallagher avatar Mar 02 '21 09:03 msgallagher