Address review: state that the field buttons also focus the field (#138)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa5db4036e
commit
78cbc87e68
1 file changed
+4
-2
@@ -7,8 +7,10 @@ use gpui_kit::component::input::{Input, InputState};
|
||||
use gpui_kit::*;
|
||||
|
||||
/// `input` in a wrapper that focuses `state` on a left click the editor did not take (the
|
||||
/// padding, the border). The text line and the buttons run first and keep their own click: the
|
||||
/// wrapper does nothing once the editor has the focus. Size the wrapper, not the `Input`.
|
||||
/// padding, the border). The text line and the buttons run first and keep their own click, but
|
||||
/// the field's own buttons (the clear cross, the mask toggle) do not stop the event, so a click
|
||||
/// on one also focuses the field. The wrapper does nothing once the editor has the focus. Size
|
||||
/// the wrapper, not the `Input`.
|
||||
pub fn input_frame(state: &Entity<InputState>, input: Input) -> Div {
|
||||
let state = state.clone();
|
||||
div()
|
||||
|
||||
Reference in new issue
Block a user