mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
keyboard: add option to enable Num Lock automatically (default=enabled)
Co-authored-by: @Consolatis
This commit is contained in:
parent
1f541be481
commit
ecad76560e
7 changed files with 46 additions and 0 deletions
|
|
@ -732,6 +732,8 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
rc.repeat_rate = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "repeatDelay.keyboard")) {
|
||||
rc.repeat_delay = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "numlock.keyboard")) {
|
||||
set_bool(content, &rc.kb_numlock_enable);
|
||||
} else if (!strcasecmp(nodename, "screenEdgeStrength.resistance")) {
|
||||
rc.screen_edge_strength = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "range.snapping")) {
|
||||
|
|
@ -949,6 +951,7 @@ rcxml_init(void)
|
|||
rc.scroll_factor = 1.0;
|
||||
rc.repeat_rate = 25;
|
||||
rc.repeat_delay = 600;
|
||||
rc.kb_numlock_enable = true;
|
||||
rc.screen_edge_strength = 20;
|
||||
|
||||
rc.snap_edge_range = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue