alma 0.1.0

A Bevy-native modal text editor with Vim-style navigation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Editor focus ownership messages.

use crate::ecs::components::buffer::ViewEntity;
use bevy::prelude::Message;

/// Request to make one editor view the focused input and chrome target.
#[derive(Clone, Copy, Debug, Eq, Message, PartialEq)]
pub struct FocusRequested {
    /// Editor view entity that should receive focus.
    pub target: ViewEntity,
}