feat: add keybind mode options

This commit is contained in:
Anna
2022-02-08 15:20:10 -05:00
parent e1e3a39c5c
commit f70b23a476
5 changed files with 65 additions and 2 deletions
+6 -1
View File
@@ -367,7 +367,12 @@ internal sealed unsafe class Chat : IDisposable {
return;
}
if (!modifierState.HasFlag(modifier)) {
var modifierPressed = this.Plugin.Config.KeybindMode switch {
KeybindMode.Strict => modifier == modifierState,
KeybindMode.Flexible => modifierState.HasFlag(modifier),
_ => false,
};
if (!modifierPressed) {
return;
}