Commit fecfa1e 1 parent 1061d60 commit fecfa1e Copy full SHA for fecfa1e
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -884,7 +884,6 @@ impl<'array> ArrayTable<'array> {
884
884
row_index : table_row_index,
885
885
is_pinned_column_table : pinned_column_table,
886
886
} ) ;
887
- ui. ctx ( ) . memory_mut ( |m| m. request_focus ( self . table_id ) ) ;
888
887
889
888
} else {
890
889
textedit_response. request_focus ( ) ;
@@ -1086,6 +1085,9 @@ impl<'array> ArrayTable<'array> {
1086
1085
if response. hovered ( ) {
1087
1086
ui. ctx ( ) . set_cursor_icon ( CursorIcon :: Cell ) ;
1088
1087
}
1088
+ if updated_value. is_some ( ) {
1089
+ ui. ctx ( ) . memory_mut ( |m| m. request_focus ( self . table_id ) ) ;
1090
+ }
1089
1091
Some ( response)
1090
1092
} ) ;
1091
1093
}
Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ impl ObjectTable {
105
105
row_index : table_row_index,
106
106
is_pinned_column_table : false ,
107
107
} ) ;
108
- ui. ctx ( ) . memory_mut ( |m| m. request_focus ( self . table_id ) ) ;
109
108
110
109
} else {
111
110
textedit_response. request_focus ( ) ;
112
111
}
112
+
113
113
None
114
114
} else {
115
115
let rect = ui. available_rect_before_wrap ( ) ;
@@ -175,6 +175,9 @@ impl ObjectTable {
175
175
self . was_editing = true ;
176
176
}
177
177
} ) ;
178
+ if self . was_editing {
179
+ ui. ctx ( ) . memory_mut ( |m| m. request_focus ( self . table_id ) ) ;
180
+ }
178
181
array_response
179
182
}
180
183
You can’t perform that action at this time.
0 commit comments