- Opens for text-input-v3 fields, terminals, launcher search, Network password, emoji picker and the password dialog; a KB pill summons it manually. - Enabled on CHASSIS=handset; CHANDRA_OSK=1|0 overrides, and it stays off under CHANDRA_TEST_CONFIG. - Work area and panel popups shrink above the keyboard so focused content stays visible. - Keys send evdev codes with Shift, Ctrl and Alt modifiers. - chandra-ctl: `screenshot [PATH]` saves a PNG without opening the editor. - Key names cover the full punctuation set and shifted symbols. - Launcher plasmoid min width drops from 60 to 36.
This commit is contained in:
1 parent
1205329abd
commit
905dab8725
21 files changed
+1335
-68
No files matched your search
@@ -416,6 +416,8 @@ pub(all) struct DesktopShell {
|
||||
desk_saved : Map[String, String]
|
||||
/// The menu's top edge when it opens at the pointer (the desktop menu); -1 above the panel.
|
||||
mut menu_anchor_y : Int
|
||||
/// Extra bottom inset reserved for panel popups (e.g. an open on-screen keyboard).
|
||||
mut popup_bottom_inset : Int
|
||||
}
|
||||
|
||||
///|
|
||||
@@ -538,7 +540,7 @@ pub fn DesktopShell::new(display : String) -> DesktopShell {
|
||||
wit_cache: {},
|
||||
recents: [],
|
||||
launcher_state: @launcher.State::new(),
|
||||
desk_choice: default_desktop,
|
||||
desk_choice: default_desktop_id(),
|
||||
desk_choice_read: false,
|
||||
desk_mod: None,
|
||||
desk_backdrop: 0,
|
||||
@@ -554,6 +556,7 @@ pub fn DesktopShell::new(display : String) -> DesktopShell {
|
||||
desk_covered: false,
|
||||
desk_saved: {},
|
||||
menu_anchor_y: -1,
|
||||
popup_bottom_inset: 0,
|
||||
}
|
||||
sh.order_apps()
|
||||
sh
|
||||
@@ -681,6 +684,37 @@ fn DesktopShell::open_popup_widget(self : DesktopShell) -> Widget? {
|
||||
None
|
||||
}
|
||||
|
||||
///| The module id of the currently open panel popup, or "" when none (or only the menu is open).
|
||||
pub fn DesktopShell::open_popup_module_id(self : DesktopShell) -> String {
|
||||
match self.open_popup_widget() {
|
||||
Some(w) => w.module_id
|
||||
None => ""
|
||||
}
|
||||
}
|
||||
|
||||
///| The screen rectangle of the currently open panel popup, if any.
|
||||
pub fn DesktopShell::open_popup_rect(self : DesktopShell) -> @scene.Rect? {
|
||||
match self.open_popup_widget() {
|
||||
Some(w) if w.popup_rect.w > 0 => Some(w.popup_rect)
|
||||
_ => None
|
||||
}
|
||||
}
|
||||
|
||||
///| Reserve extra room at the bottom for popups (e.g. an open on-screen keyboard) and
|
||||
/// reposition any open popup above it.
|
||||
pub fn DesktopShell::set_popup_bottom_inset(self : DesktopShell, inset : Int) -> Unit {
|
||||
let v = if inset > 0 { inset } else { 0 }
|
||||
if self.popup_bottom_inset == v {
|
||||
return
|
||||
}
|
||||
self.popup_bottom_inset = v
|
||||
for w in self.widgets.copy() {
|
||||
if w.popup_rect.w > 0 {
|
||||
self.refresh_popup(w)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
///|
|
||||
fn DesktopShell::widget_at(self : DesktopShell, x : Int, y : Int) -> Widget? {
|
||||
for w in self.widgets {
|
||||
|
||||
Reference in new issue
Block a user