Files
blockly/core
Christopher Allen b0b685a739 refactor(shortcuts): Factor copy-eligibility out of cut/copy preconditionFn (#9102)
* refactor(shortcuts): Rename import isDeletable -> isIDeletable etc.

  Some of the existing code is confusing to read because e.g.
  isDeletable doesn't check if an item .isDeletable(), but only
  whether it is an IDeletable.

  By renaming these imports the shortcut precondition functions are
  easier to understand, and allows a subsequent to commit to add
  an isCopyable function that actually checks copyability.

* refactor(shortcuts): Introduce isCopyable

  Create a function, isCopyable, that encapsulates the criteria we
  currently use to determine whether an item can be copied.

  This facilitate future modification of the copyability criteria
  (but is not intended to modify them at all at the present time).

* chore(shortcuts): Add TODO re: copying shadow blocks
2025-05-28 17:16:02 +01:00
..
2024-08-15 03:16:14 +01:00
2024-08-15 03:16:14 +01:00
2024-04-17 19:47:51 -07:00
2024-08-15 03:16:14 +01:00
2025-04-30 15:54:21 -07:00
2024-08-15 03:16:14 +01:00
2024-08-15 03:16:14 +01:00
2024-08-15 03:16:14 +01:00
2025-04-14 13:56:46 -07:00
2024-12-04 12:15:19 -08:00
2024-12-04 12:15:19 -08:00