mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
close search on escape action
This commit is contained in:
parent
94b8227088
commit
4b357f8229
4 changed files with 40 additions and 11 deletions
|
|
@ -15,9 +15,15 @@ pub struct Gemini {
|
|||
|
||||
impl Gemini {
|
||||
// Construct
|
||||
pub fn new(gemtext: &str, base: &Uri, actions: (Rc<WindowAction>, Rc<TabAction>)) -> Self {
|
||||
pub fn new(
|
||||
gemtext: &str,
|
||||
base: &Uri,
|
||||
(window_action, tab_action): (&Rc<WindowAction>, &Rc<TabAction>),
|
||||
) -> Self {
|
||||
// Init components
|
||||
let reader = Rc::new(Reader::new(gemtext, base, actions).unwrap()); // @TODO handle errors
|
||||
let reader = Rc::new(
|
||||
Reader::new(gemtext, base, (window_action.clone(), tab_action.clone())).unwrap(),
|
||||
); // @TODO handle errors
|
||||
let widget = Rc::new(Widget::new(&reader.widget.text_view));
|
||||
|
||||
// Result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue