Merge branch 'feature/v2-renewal' of http://39.117.244.52:3000/kjs/ERP-node into jskim-node
This commit is contained in:
@@ -5556,8 +5556,12 @@ export default function ScreenDesigner({
|
||||
return false;
|
||||
}
|
||||
|
||||
// 6. 삭제 (단일/다중 선택 지원)
|
||||
if (e.key === "Delete" && (selectedComponent || groupState.selectedComponents.length > 0)) {
|
||||
// 6. 삭제 (단일/다중 선택 지원) - Delete 또는 Backspace(Mac)
|
||||
const isInputFocused = document.activeElement instanceof HTMLInputElement ||
|
||||
document.activeElement instanceof HTMLTextAreaElement ||
|
||||
document.activeElement instanceof HTMLSelectElement ||
|
||||
(document.activeElement as HTMLElement)?.isContentEditable;
|
||||
if ((e.key === "Delete" || (e.key === "Backspace" && !isInputFocused)) && (selectedComponent || groupState.selectedComponents.length > 0)) {
|
||||
// console.log("🗑️ 컴포넌트 삭제 (단축키)");
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
@@ -7419,7 +7423,7 @@ export default function ScreenDesigner({
|
||||
</p>
|
||||
<p>
|
||||
<span className="font-medium">편집:</span> Ctrl+C(복사), Ctrl+V(붙여넣기), Ctrl+S(저장),
|
||||
Ctrl+Z(실행취소), Delete(삭제)
|
||||
Ctrl+Z(실행취소), Delete/Backspace(삭제)
|
||||
</p>
|
||||
<p className="text-warning flex items-center justify-center gap-2">
|
||||
<span>⚠️</span>
|
||||
|
||||
Reference in New Issue
Block a user