mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 01:29:31 +02:00
Gtk2: do not show selection when GtkEntry is unfocused.
git-svn-id: trunk@36097 -
This commit is contained in:
parent
809abca886
commit
2dbd330280
@ -1016,8 +1016,9 @@ begin
|
||||
DebugLn('');
|
||||
{$ENDIF}
|
||||
|
||||
// do not release capture widget here, as this will interfere
|
||||
//ReleaseCaptureWidget(Widget);
|
||||
// do not show selection when widget is unfocused
|
||||
if GtkWidgetIsA(Widget, gtk_type_entry) then
|
||||
gtk_editable_select_region(PGtkEditable(Widget), 0, 0);
|
||||
|
||||
Result:=CallBackDefaultReturn;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user