Ctrl+C Copy Text in View Dialog Issue

QuestionsCtrl+C Copy Text in View Dialog Issue
Richard Samson asked 4 months ago

I have a small issue where users are unable to quickly copy highlighted record text from the view dialog by using standard Ctrl+C shortcut key on Windows and was hoping there’s an easy fix.

To reproduce:

  1. Select any record
  2. Click the view toolbar icon
  3. Drag and highlight some or all of the record field text
  4. Press Ctrl+C to copy to clipboard.
  5. Nothing get’s copied.

Please note, right clicking the mouse and selecting copy works correctly, just not the Ctrl+C shortcut key method.

Our users are running Google Chrome v77, though the same issue appears with Firefox.

Thanks.

2 Answers
Abu Ghufran Staff answered 4 months ago

I tested this and it was due to modal dialog library. Try following in set_options() function:

$opt[“view_options”][“jqModal”] = false;

To fix it in all grids, you can edit lib/inc/jqgrid_dist.php:

$grid[“view_options”] = array(“jqModal” => false, “modal” => true, “closeOnEscape”=>true, “recreateForm”=>true, “width” => 400,
“rowButton” => true
);

We’ve updated it in dev line so you don’t need to worry about sync’ing updates.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Richard Samson answered 4 months ago

Excellent, that’s worked great thanks.

Your Answer

7 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?