remove valid_for_capslock
This commit is contained in:
parent
3212290f6e
commit
ae79a36f7b
3 changed files with 5 additions and 23 deletions
|
|
@ -40,15 +40,6 @@ pub fn valid_for_numlock(evt: &KeyEvent) -> bool {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn valid_for_capslock(evt: &KeyEvent) -> bool {
|
||||
if let Some(key_event::Union::chr(ch)) = evt.union {
|
||||
ch >= 'a' as u32 && ch <= 'z' as u32
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
pub fn create_clipboard_msg(content: String) -> Message {
|
||||
let bytes = content.into_bytes();
|
||||
let compressed = compress_func(&bytes, COMPRESS_LEVEL);
|
||||
|
|
@ -467,4 +458,3 @@ pub fn is_ip(id: &str) -> bool {
|
|||
.unwrap()
|
||||
.is_match(id)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue