diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-02 17:02:18 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-04 12:52:15 +0200 |
| commit | 83669b23c371ee0bdea178fce9920585dd55704b (patch) | |
| tree | 98d09b34dd5c0da4196620296757ce5e26095bcd /tests/CMakeLists.txt | |
| parent | d217d976ccdc439803003a26252904ca8abdd520 (diff) | |
| download | qtmaildir-83669b23c371ee0bdea178fce9920585dd55704b.tar.gz qtmaildir-83669b23c371ee0bdea178fce9920585dd55704b.zip | |
feat: add KeyMap with defaults and INI overrides
Maps key sequences to action name strings, with hardcoded vim-style
defaults and QSettings-based [keys] overrides. Unknown actions and
unparseable sequences are collected as warnings rather than treated
as fatal, so a typo in the config cannot silently misbind or crash.
Note: QKeySequence::fromString() on Qt 6.11 does not return an empty
sequence for unparseable input (e.g. "NotAKey++") -- it returns a
non-empty sequence whose toString() is empty. Detection uses that
instead of isEmpty().
Diffstat (limited to 'tests/CMakeLists.txt')
| -rw-r--r-- | tests/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3344d4a..d4f0d3f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -4,3 +4,5 @@ function(add_qtmaildir_test name) target_link_libraries(test_${name} PRIVATE qtmaildir_lib Qt6::Test) add_test(NAME ${name} COMMAND test_${name}) endfunction() + +add_qtmaildir_test(keymap) |
