Allow Copy/Paste/Search

Created on 26 June 2022, over 2 years ago
Updated 12 September 2024, 3 months ago

Problem/Motivation

According to https://bpmn.io/blog/posts/2016-copy-paste-search-bpmn-js-0-15.html, BPMN.io is capable of letting a user select, copy and paste, as well as search using either the context menu or via keyboard shortcuts.

However, there isn't a context menu when right clicking, nor does it register Ctrl + C (does nothing), Ctrl + V (does nothing), nor Ctrl + F (opens standard browser search).

Steps to reproduce

Ctrl + C (does nothing), Ctrl + V (does nothing), nor Ctrl + F (opens standard browser search).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇩🇪Germany NWOM

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany jurgenhaas Gottmadingen
  • 🇮🇹Italy kopeboy Milan

    Would be very nice to be able to copy-paste actions and selections of multiple elements.

  • Status changed to Needs review 3 months ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Looks like I found an easy way to enable support for copy (ctrl-c), paste (ctrl-v) and search (ctrl-f). This works only within the same model, but better than what we have so far.

  • 🇺🇸United States eswiderski

    @jurgenhaas I just pulled the latest 2.1.x-dev, updated db, cleared cache, but the behavior doesn't appear to be implemented for me. Using Mac/Chrome.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    @eswiderski can you make sure that the browser really loads the latest version from webpack/bpmn-modeller.js in the bpmn_io module directory? It may have cached that file.

    Also, the OS specific hot-keys for copy and paste may be different on the mac. What the fix supposed to be doing is to bind the system specific hot keys to the bpmn io internal copy and paste functionality.

  • 🇺🇸United States eswiderski

    @jurgenhaas Actually it did pull the updated script and confirmed this is working, just a bit of nuance to the behavior.

    Initially, I did the following, which pasted nothing:
    1. selected the objects I wanted to copy
    2. Ctrl + C
    3. Clicked on the canvas
    4. Ctrl + V

    Not clicking on the canvas after Ctrl + C actually pasted it correctly:
    1. selected the objects I wanted to copy
    2. Ctrl + C
    3. Ctrl + V

    THANKS AGAIN!!!

  • Status changed to RTBC 3 months ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    OK, I can't confirm this as it works here even if I click the canvas before pasting. But let's ignore that for now ;-) I'm back porting and making a new release available soon.

  • Status changed to Fixed 3 months ago
  • 🇩🇪Germany jurgenhaas Gottmadingen
  • 🇺🇸United States eswiderski

    Weird...now both ways are working for me today.

    Even weirder....if I enable "Aggregate JavaScript files" in Performance, neither method works for me. Probably something janky with my config.

    Either way, this feature is a huge efficiency booster, thanks again!

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • 🇮🇹Italy kopeboy Milan

    For me it worked perfectly, without manually clearing any browser data, with JS aggregation enabled, no development settings, and by both clicking on the canvas before pasting or not.

    HUGE productivity boost! Thanks! 🙏🏻🤩💪🏻

Production build 0.71.5 2024