fix sciter keyboard
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
1424cbeb44
commit
d916c54029
6 changed files with 43 additions and 18 deletions
|
|
@ -231,6 +231,17 @@ impl InvokeUiSession for SciterHandler {
|
|||
self.call("updatePi", &make_args!(pi_sciter));
|
||||
}
|
||||
|
||||
fn on_connected(&self, conn_type: ConnType) {
|
||||
match conn_type {
|
||||
ConnType::RDP => {},
|
||||
ConnType::PORT_FORWARD => {},
|
||||
ConnType::FILE_TRANSFER => {},
|
||||
ConnType::DEFAULT_CONN => {
|
||||
crate::keyboard::client::start_grab_loop();
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
fn msgbox(&self, msgtype: &str, title: &str, text: &str, link: &str, retry: bool) {
|
||||
self.call2(
|
||||
"msgbox_retry",
|
||||
|
|
@ -434,6 +445,10 @@ impl SciterSession {
|
|||
Self(session)
|
||||
}
|
||||
|
||||
pub fn inner(&self) -> Session<SciterHandler> {
|
||||
self.0.clone()
|
||||
}
|
||||
|
||||
fn get_custom_image_quality(&mut self) -> Value {
|
||||
let mut v = Value::array(0);
|
||||
for x in self.lc.read().unwrap().custom_image_quality.iter() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue