Skip to content

Commit cb6cee2

Browse files
committed
Merge hotfix: remove invalid KeyPressFcn (uieditfield runtime fix)
2 parents 0835c62 + d7d07b7 commit cb6cee2

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

libs/FastSenseCompanion/DashboardListPane.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ function attach(obj, parentPanel, hFig, engines, theme)
8888
obj.hSearchField_.FontColor = obj.Theme_.ForegroundColor;
8989
obj.hSearchField_.BackgroundColor = obj.Theme_.WidgetBackground;
9090
obj.hSearchField_.ValueChangedFcn = @(~,~) obj.onSearchChanged_();
91-
obj.hSearchField_.KeyPressFcn = @(~,e) obj.onSearchKeyPress_(e);
91+
% Note: uieditfield has no KeyPressFcn (only uifigure has
92+
% WindowKeyPressFcn). Esc-to-clear deferred — the × clear
93+
% button satisfies BROWSER-04's keyboard-reachable clear.
9294

9395
obj.hSearchClear_ = uibutton(hSearchGrid, 'push');
9496
obj.hSearchClear_.Layout.Row = 1;

libs/FastSenseCompanion/TagCatalogPane.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ function attach(obj, parentPanel, hFig, registry, theme)
9191
obj.hSearchField_.FontColor = obj.Theme_.ForegroundColor;
9292
obj.hSearchField_.BackgroundColor = obj.Theme_.WidgetBackground;
9393
obj.hSearchField_.ValueChangedFcn = @(~,~) obj.onSearchChanged_();
94-
obj.hSearchField_.KeyPressFcn = @(~,e) obj.onSearchKeyPress_(e);
94+
% Note: uieditfield has no KeyPressFcn (only uifigure has
95+
% WindowKeyPressFcn). Esc-to-clear deferred — the × clear
96+
% button (Tooltip 'Clear search') satisfies CATALOG-05's
97+
% keyboard-reachable clear requirement.
9598

9699
obj.hSearchClear_ = uibutton(hSearchGrid, 'push');
97100
obj.hSearchClear_.Layout.Row = 1;

0 commit comments

Comments
 (0)