eeschema: Multi-placing labels interacts weird with [ESC]

Description

If you use the multi-label tool, then cancel before placing all labels, then immediately use the multi-label tool again with some of the label names the same (e.g. correcting a typo you noticed mid-placement), you get the behaviour shown in the screen recording below:

kicad_nDEkTDkzX2

This does not appear to happen if the two sets of labels are entirely distinct; for instance, when initially trying to get it to reproduce I used sets of "label1, label2, label3, label4, label5" and "labelA, labelB, labelC, labelD, labelE" and was unable to reproduce the bug.

It appears that it simply resumes placing labels from the first group, skipping the one on which you pressed [ESC], followed by placing the labels from the second group.

Steps to reproduce

  1. Start placing a set of multiple labels.
  2. On the second-to-last label or earlier, press [ESC].
  3. Immediately return to the multi-label dialog, then enter a set of labels containing some (but not necessarily all) of the previous set and start placing them.
  4. Labels from the first, cancelled set (including ones not in the second set) will be placed first, then labels from the second set.

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: 9.0.6, release build

Libraries:
	wxWidgets 3.2.8
	FreeType 2.13.3
	HarfBuzz 10.2.0
	FontConfig 2.15.0
	libcurl/8.13.0-DEV Schannel zlib/1.3.1

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: NVIDIA Corporation, NVIDIA GeForce GTX 1650/PCIe/SSE2, 4.6.0 NVIDIA 581.29

Build Info:
	Date: Oct 30 2025 19:36:12
	wxWidgets: 3.2.8 (wchar_t,wx containers)
	Boost: 1.88.0
	OCC: 7.9.1
	Curl: 8.13.0-DEV
	ngspice: 45.2
	Compiler: Visual C++ 1944 without C++ ABI
	KICAD_IPC_API=ON

Locale: 
	Lang: en_US
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)