nsh-core 0.7.2

Platform-independent core: shadow tree, styles, layout and mount instructions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The software keyboard: `Keyboard` (content kept above it is the
//! styles' `env(keyboard-inset-height)`).

use crate::prelude::*;

/// The software keyboard.
#[module]
#[derive(Debug)]
pub struct Keyboard;

#[module]
impl Keyboard {
    /// Unfocuses the focused input, hiding the keyboard.
    pub fn dismiss(cx: &mut ModuleCx) {
        cx.dismiss_keyboard();
    }
}