Skip to content

Commit 0abdc34

Browse files
committed
fix Delete and Clear actions in rich text editor
1 parent fe2a6b6 commit 0abdc34

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/qml/filters/richtext/vui.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2024 Meltytech, LLC
2+
* Copyright (c) 2020-2025 Meltytech, LLC
33
*
44
* This program is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
@@ -542,11 +542,11 @@ Shotcut.VuiBase {
542542
document.pastePlain();
543543
}
544544
onDeleteTriggered: {
545-
textArea.remove(control.selectionStart, control.selectionEnd);
545+
textArea.remove(document.selectionStart, document.selectionEnd);
546546
}
547547
onClearTriggered: {
548548
textArea.selectAll();
549-
textArea.remove(control.selectionStart, control.selectionEnd);
549+
textArea.remove(document.selectionStart, document.selectionEnd);
550550
}
551551
onSelectAllTriggered: {
552552
textArea.selectAll();

0 commit comments

Comments
 (0)