add input methdod framework (add sitelen pona input)
Also change audio player randomness source to /dev/urandom which is way better for the prng we are using
This commit is contained in:
19
wm/src/input_method/lat.rs
Normal file
19
wm/src/input_method/lat.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use ming_wm_lib::window_manager_types::InputMethod;
|
||||
use ming_wm_lib::messages::KeyPress;
|
||||
|
||||
pub struct Lat {}
|
||||
|
||||
impl InputMethod for Lat {
|
||||
fn abbr(&self) -> [char; 3] {
|
||||
['L', 'A', 'T']
|
||||
}
|
||||
|
||||
fn internal_buffer(&self) -> String {
|
||||
String::new()
|
||||
}
|
||||
|
||||
fn add_key_press(&mut self, kp: KeyPress) -> Option<char> {
|
||||
//everything goes
|
||||
Some(kp.key)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user