Cut and Copy menu items are sometimes disabled

4 posts, 1 answers
  1. Mihajlo
    Mihajlo avatar
    47 posts
    Member since:
    Aug 2018

    Posted 21 Apr Link to this post

    In demo editor it is possible to select text with double-click, and right-click the text, and have Cut and Copy menu items disabled in context menu. One has to be very fast, but it's not hard to reproduce it. Sometimes even Cut is enabled and Copy is disabled. Not sure if this is a bug or by design.
  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3891 posts

    Posted 24 Apr Link to this post

    Hello, Mihajlo,

    RadRichTextEditor uses a ContextMenuContentBuilder for creating the menu that is shown when you right click on the text.

    Usually, Cut and Copy options are expected to be disabled if there is no selected text in RadRichTextEditor because you don't have anything for copying.

    I have tested in our Demo application and in a brand new sample project as well. However, I was unable to replicate any undesired behavior.

     

    The important part here is which operation is triggered first - the double click or the single right click? The context menu items depend on whether you have any selected text at the moment you request the menu. Hence, if the right-click operation is first and then you double click, even though it may executed very quickly, the Copy and Cut menu items are expected to be disabled if no text is selected. 

    However, if you are experiencing any further difficulties after the proper order of the operations, it would be greatly appreciated if you specify the exact steps that i need to perform in order to reproduce the problematic behavior. Thank you in advance.

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Mihajlo
    Mihajlo avatar
    47 posts
    Member since:
    Aug 2018

    Posted 24 Apr in reply to Dess | Tech Support Engineer, Sr. Link to this post

    These images don't appear to be from Word-inspired project, where I saw the problem. Maybe there is some difference there. Also, one has to be fast with double-click/right-click combo. Time span between two actions should be less than 200 ms. Maybe even move the mouse pointer a few pixels between two actions, but stay within the bounds of selected text. Also, the problem appears only sometimes. It's a "heisenbug". Must try at least a dozen times.
  4. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3891 posts

    Posted 28 Apr Link to this post

    Hello, Mihajlo,

    To be honest, this undesired behavior is a little bit tricky in reproducing. That is why I would like to explain again why it occurs. 

    It is important which operation is triggered first - the double click or the single right click. The context menu items depend on whether you have any selected text at the moment you request the menu. Hence, if the right-click operation is first and then you double click, even though it may executed very quickly, the Copy and Cut menu items are expected to be disabled if no text is selected. 

    I have logged it in our feedback portal by creating a public thread on your behalf in order to investigate the possibility to improve this undesired behavior. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

    I have also updated your Telerik points.

    Should you have further questions please let me know.

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top