Why does an unselected object delete by keypress?

 

When I create button and label from expert advisor

ObjectCreate(0,"button0",OBJ_BUTTON,0,0,0); 
ObjectSetInteger(0,"button0",OBJPROP_CORNER,CORNER_LEFT_UPPER); 
ObjectSetInteger(0,"button0",OBJPROP_XDISTANCE,10); 
ObjectSetInteger(0,"button0",OBJPROP_YDISTANCE,10);
ObjectCreate("label0",OBJ_LABEL,0,0,0);
ObjectSetText("label0","Label",9,"MQL5",clrLime);
ObjectSet("label0",OBJPROP_XDISTANCE,20); 
ObjectSet("label0",OBJPROP_YDISTANCE,25); 
ObjectSet("label0",OBJPROP_CORNER,0);

its deleting from chart with the backspace key

Version 4.0 build 1360 12 Sep 2022

 
Same issue (select object after creation unchecked). Each backspace press causes deleting an object from a chart (in order from the newest to the oldest). It doesn't depend if  the object is selected or not.
 
Brian Lillard: its deleting from chart with the backspace key

Exactly as documented. Perhaps you should read the manual.
          Fast Navigation - User Interface - MetaTrader 4 Help (Hot keys)
          Hot Keys - For Advanced Users - Getting Started - MetaTrader 5 Help

Hot Keys of the Chart Window

Hot keys Description
Delete Delete all selected graphical objects.
Backspace Delete the latest objects imposed to a chart.
 
William Roeder #:

Exactly as documented. Perhaps you should read the manual.

Thank you, William, for having such a good overview of the manual, and for being willing to share it with others.

That's a pretty stupid feature IMHO. Especially when using objects for editing. But this is not a comment on William, but on MetaQuotes.

Reason: