anvil: set saner values for key repeat rate
This commit is contained in:
parent
27a73888a8
commit
1736db27b4
|
@ -186,7 +186,7 @@ pub fn run_udev(mut display: Display, mut event_loop: EventLoop<AnvilState>, log
|
|||
*cursor_status.lock().unwrap() = new_status;
|
||||
});
|
||||
let keyboard = w_seat
|
||||
.add_keyboard(XkbConfig::default(), 1000, 500, |seat, focus| {
|
||||
.add_keyboard(XkbConfig::default(), 200, 25, |seat, focus| {
|
||||
set_data_device_focus(seat, focus.and_then(|s| s.as_ref().client()))
|
||||
})
|
||||
.expect("Failed to initialize the keyboard");
|
||||
|
|
|
@ -101,7 +101,7 @@ pub fn run_winit(
|
|||
});
|
||||
|
||||
let keyboard = seat
|
||||
.add_keyboard(XkbConfig::default(), 1000, 500, |seat, focus| {
|
||||
.add_keyboard(XkbConfig::default(), 200, 25, |seat, focus| {
|
||||
set_data_device_focus(seat, focus.and_then(|s| s.as_ref().client()))
|
||||
})
|
||||
.expect("Failed to initialize the keyboard");
|
||||
|
|
|
@ -263,8 +263,8 @@ impl Seat {
|
|||
/// variant: "nodeadkeys",
|
||||
/// ..XkbConfig::default()
|
||||
/// },
|
||||
/// 1000,
|
||||
/// 500,
|
||||
/// 200,
|
||||
/// 25,
|
||||
/// |seat, focus| {
|
||||
/// /* This closure is called whenever the keyboard focus
|
||||
/// * changes, with the new focus as argument */
|
||||
|
|
Loading…
Reference in New Issue