Emoji picker (Super+.): search, tabs, skin tones, recents, text-input-v3 insertion
CI / test (push) Canceled after 0s
CI / test (push) Canceled after 0s
Compositor-drawn Win+. style picker. The focused app keeps keyboard focus so
its text-input-v3 field stays enabled; the emoji goes in with commit_string,
or onto the clipboard with a visible notice when the app has no text field.
Shortcut lives in the shortcut table (rebindable in Settings > Shortcuts).
- compositor/wayland/text_input.mbt: zwp_text_input_manager_v3 (global 12)
- compositor/emoji: Emoji 18.0 + CLDR 49 data (Unicode License), search,
picker model, CBDT/CBLC + GSUB reader for Noto Color Emoji
- Chandra's own pinned bitmap Noto Color Emoji (scripts/fetch-emoji-font.sh,
just emoji-font); Fedora's COLRv1 copy can't be drawn. Missing font shows
an error panel.
- raster WIT: emoji-font, emoji-has, emoji-image; served by wasmhost
- state.edn :emoji {:recent [...] :skin-tone n}
- tests incl. a fake text-input client; docs/emoji-picker.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hkABDGJixotaqFv2X2
This commit is contained in:
39 files changed
+4942
-41
No files matched your search
@@ -242,6 +242,13 @@ pub(all) struct ChandraCompositor {
|
||||
/// and where pictures go ("" for ~/Pictures/Screenshots).
|
||||
mut shot : ShotOverlay?
|
||||
mut shot_toast : ShotToast?
|
||||
/// The emoji picker while it is up (emoji_picker.mbt), keys whose release it swallows, and
|
||||
/// which emoji the font can draw (asked once).
|
||||
mut emoji_ui : EmojiUi?
|
||||
emoji_swallow : Array[UInt]
|
||||
mut emoji_cover : Array[Bool]?
|
||||
/// Recent emoji (newest first) and skin tone, read from state.edn at the first Super+.
|
||||
mut emoji_saved : (Array[String], Int)?
|
||||
mut shot_request : (ShotMode, Int)?
|
||||
mut rec_request : (ShotMode, Int)?
|
||||
mut frames_built : Int
|
||||
@@ -412,6 +419,10 @@ pub fn ChandraCompositor::new(
|
||||
session_check_at: 0UL,
|
||||
shot: None,
|
||||
shot_toast: None,
|
||||
emoji_ui: None,
|
||||
emoji_swallow: [],
|
||||
emoji_cover: None,
|
||||
emoji_saved: None,
|
||||
shot_request: None,
|
||||
rec_request: None,
|
||||
frames_built: 0,
|
||||
@@ -1162,6 +1173,7 @@ fn ChandraCompositor::build_scene(
|
||||
panel_ops.append(self.switcher_ops())
|
||||
}
|
||||
panel_ops.append(self.screenshot_ops())
|
||||
panel_ops.append(self.emoji_ops())
|
||||
panel_ops.append(self.face_window_ops())
|
||||
panel_ops.append(self.auth_ops())
|
||||
panel_ops.append(self.auth_notice_ops())
|
||||
@@ -1944,6 +1956,9 @@ pub fn ChandraCompositor::handle_input(
|
||||
}
|
||||
_ => ()
|
||||
}
|
||||
if self.emoji_input(ev, time_ms) {
|
||||
return
|
||||
}
|
||||
if self.screenshot_input(ev, time_ms) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user