Merge PR #1573 from ramox81/codex/blocks-palette-parity: Blocks palette tabs, insertion options, drag insertion and -INSERT

This commit is contained in:
Hakan Seven committed 2026-10-02 10:10:51 +03:00
commit 7a6908c7ca
49 files changed
+3401 -573

No files matched your search

+5
View File
@@ -3370,6 +3370,7 @@ impl OpenCADStudio {
pub(super) fn on_viewport_left_press(&mut self) -> Task<Message> {
let i = self.active_tab;
self.block_palette.pressed = None;
if let Some(command) = self.tabs[i].active_cmd.as_mut() {
command.set_ctrl(self.ctrl_down);
command.set_shift(self.shift_down);
@@ -3741,6 +3742,10 @@ impl OpenCADStudio {
pub(super) fn on_viewport_left_release(&mut self) -> Task<Message> {
let i = self.active_tab;
// A block dragged from the Blocks palette lands here.
if let Some(item) = self.take_block_drop() {
return self.drop_block(item);
}
if let Some(command) = self.tabs[i].active_cmd.as_mut() {
command.set_ctrl(self.ctrl_down);
command.set_shift(self.shift_down);