mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +03:00
x11/wayland: avoid including keysym name in compose cursor
refs: https://github.com/wez/wezterm/issues/4511
This commit is contained in:
parent
b0671294d1
commit
72fae51b00
@ -156,6 +156,7 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
* Incorrect sunset / sunrise progression. Thanks to @mikyk10! #4809 #4810
|
||||
* retro tab bar indented too far on macOS when using integrated titlebar buttons.
|
||||
Thanks to @0xdead10cd! #4505
|
||||
* x11/wayland: avoid including keysym name in deadkey compose cursor. #4511
|
||||
|
||||
#### Updated
|
||||
* Bundled harfbuzz to 8.3.0
|
||||
|
@ -92,17 +92,14 @@ impl Compose {
|
||||
// we don't have a fantastic way to indicate what is
|
||||
// currently being composed, so we try to get something
|
||||
// that might be meaningful by getting the utf8 for that
|
||||
// key if known, or falling back to the name of the keysym.
|
||||
// The keysym name is likely much wider than the utf8, but
|
||||
// it's probably better than nothing.
|
||||
// An alternative we could use if folks don't like it is
|
||||
// either a space or an underscore.
|
||||
// key if known.
|
||||
// We used to fall back to the name of the keysym, but
|
||||
// feedback was that is was undesirable
|
||||
// <https://github.com/wez/wezterm/issues/4511>
|
||||
let key_state = key_state.borrow();
|
||||
let utf8 = key_state.key_get_utf8(xcode);
|
||||
if !utf8.is_empty() {
|
||||
self.composition.push_str(&utf8);
|
||||
} else {
|
||||
self.composition.push_str(&xkb::keysym_get_name(xsym));
|
||||
}
|
||||
}
|
||||
FeedResult::Composing(self.composition.clone())
|
||||
|
Loading…
Reference in New Issue
Block a user