refactor(core): change event package names

This commit is contained in:
Federico Terzi 2021-04-23 19:55:11 +02:00
parent 871da0aaa1
commit aaa55ca063
4 changed files with 1 additions and 34 deletions

View File

@ -17,7 +17,6 @@
* along with espanso. If not, see <https://www.gnu.org/licenses/>.
*/
pub mod text;
pub mod input;
pub mod effect;
pub mod internal;

View File

@ -1,31 +0,0 @@
/*
* This file is part of espanso.
*
* Copyright (C) 2019-2021 Federico Terzi
*
* espanso is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* espanso is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with espanso. If not, see <https://www.gnu.org/licenses/>.
*/
#[derive(Debug, Clone)]
pub struct TextInjectRequest {
pub text: String,
pub force_mode: Option<TextInjectMode>,
}
#[derive(Debug, PartialEq, Clone)]
pub enum TextInjectMode {
Keys,
Clipboard,
}

View File

@ -24,7 +24,6 @@ use crate::engine::{
effect::TriggerCompensationEvent,
input::{Key, KeySequenceInjectRequest},
internal::CauseCompensatedMatchEvent,
text::{TextInjectMode, TextInjectRequest},
Event,
},
};

View File

@ -18,7 +18,7 @@
*/
use super::super::Middleware;
use crate::engine::{dispatch::Mode, event::{Event, effect::CursorHintCompensationEvent, input::{Key, KeySequenceInjectRequest}, internal::RenderedEvent, text::{TextInjectMode, TextInjectRequest}}};
use crate::engine::{dispatch::Mode, event::{Event, effect::CursorHintCompensationEvent, input::{Key}, internal::RenderedEvent}};
pub struct CursorHintMiddleware {}