CTRL+A in uicontrol listbox does not update handles.Listbox.value
Bug Description
CTRL+A to select all elements in uicontrol listbox does not update handles.Listbox.value
In version Scilab 6.1.1 the value was updated, in Scilab 2023.1.0 and Scilab 2024.0.0 the UI is updated, but not the handles.Listbox.value
Steps to reproduce
Minimal code example:
f=figure('figure_position',[488,93],'figure_size',[869,733],'auto_resize','on','background',[33],'figure_name','Grafik-Fenster Nummer %d');
delmenu(f.figure_id,gettext('File'))
delmenu(f.figure_id,gettext('?'))
delmenu(f.figure_id,gettext('Tools'))
toolbar(f.figure_id,'off')
handles.dummy = 0;
handles.Listbox=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[1],'Max',[1000],'Min',[0],'Position',[0.1,0.1,0.8,0.8],'Relief','default','SliderStep',[0.01,0.1],'String',['A';'B';'C';'D'],'Style','listbox','Value',[1],'VerticalAlignment','middle','Visible','on','Tag','Messungen','Callback','Testfuction_callback(handles)')
function Testfuction_callback(handles)
disp(strcat(["Selected cells: ", strcat(string(handles.Listbox.value)," , ")]))
end
The selected elements will be displayed in the console. Clicking and Shift+Click and STRG+CLick allows multiple selections. Selecting all by pressing STRG+A will mark all elements in blue in the list, but the handles.Listbox.value is not updated in that case.
(Code was tested in Scilab 6.1.1 (CTRL+A does works), Scilab 2023.1.0 and Scilab 2024.0.0 (CTRL+A does not work))
What is the expected correct behaviour?
STRG+A select all elements of the current listbox and the value of handles.Listbox.value is updated.