simple-im: add support for unicode input
This commit is contained in:
parent
9ac4fea594
commit
481e9b3854
13 changed files with 158 additions and 1 deletions
|
|
@ -1040,6 +1040,10 @@ impl ConfigClient {
|
|||
self.send(&ClientMessage::SeatReloadSimpleIm { seat });
|
||||
}
|
||||
|
||||
pub fn seat_enable_unicode_input(&self, seat: Seat) {
|
||||
self.send(&ClientMessage::SeatEnableUnicodeInput { seat });
|
||||
}
|
||||
|
||||
pub fn set_show_float_pin_icon(&self, show: bool) {
|
||||
self.send(&ClientMessage::SetShowFloatPinIcon { show });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -798,6 +798,9 @@ pub enum ClientMessage<'a> {
|
|||
SeatReloadSimpleIm {
|
||||
seat: Seat,
|
||||
},
|
||||
SeatEnableUnicodeInput {
|
||||
seat: Seat,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
|
|
@ -631,6 +631,13 @@ impl Seat {
|
|||
pub fn reload_simple_im(self) {
|
||||
get!().seat_reload_simple_im(self);
|
||||
}
|
||||
|
||||
/// Enables Unicode input in the simple, XCompose based input method.
|
||||
///
|
||||
/// This has no effect if the simple IM is not currently active.
|
||||
pub fn enable_unicode_input(self) {
|
||||
get!().seat_enable_unicode_input(self);
|
||||
}
|
||||
}
|
||||
|
||||
/// A focus-follows-mouse mode.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue