Enable del shortcut only in design mode


This fixes del key in code editor with Qt 6.10.

Pick-to: 6.10 6.8
Task-number: QTBUG-140905
Change-Id: I17f4b5778cf1cf5a1ccf0669eea78ece9f388bff
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commit321c7ebac1c4d2785709183776e1752b7372add2
parent5f955b1fcccff64f1881a81385c782d95a4c6a9e
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeThu, 9 Oct 2025 07:35:42 +0300