Extend config support from F1-F12 to F1-F20, #7666 (#7669)

Co-authored-by: Piotr Meyer <aniou@smutek.pl>
This commit is contained in:
Piotr Meyer 2023-01-03 22:00:21 +01:00 committed by GitHub
parent 6862734580
commit b17e9f4ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,9 +679,9 @@ fn add_parsed_keybinding(
let fn_num: u8 = c[1..]
.parse()
.ok()
.filter(|num| matches!(num, 1..=12))
.filter(|num| matches!(num, 1..=20))
.ok_or(ShellError::UnsupportedConfigValue(
"(f1|f2|...|f12)".to_string(),
"(f1|f2|...|f20)".to_string(),
format!("unknown function key: {}", c),
keybinding.keycode.span()?,
))?;