Skip to content

Commit

Permalink
Core: fix double-click on textbox
Browse files Browse the repository at this point in the history
Open and focus 'Text and Font'  widget on textbox double-click instead of legacy dialog.
  • Loading branch information
rodlie committed Aug 12, 2024
1 parent 2d7f98d commit e3d2fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/canvasmouseevents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void Canvas::mouseDoubleClickEvent(const eMouseEvent &e) {
mCurrentMode == CanvasMode::pointTransform) &&
enve_cast<TextBox*>(mHoveredBox)) {
e.fReleaseMouse();
static_cast<TextBox*>(mHoveredBox.data())->openTextEditor(e.fWidget);
emit openTextEditor();
} else if(mCurrentMode == CanvasMode::boxTransform &&
enve_cast<SmartVectorPath*>(mHoveredBox)) {
Document::sInstance->setCanvasMode(CanvasMode::pointTransform);
Expand Down

0 comments on commit e3d2fd4

Please sign in to comment.