mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-15 11:15:59 +01:00
10 lines
No EOL
279 B
C++
10 lines
No EOL
279 B
C++
#include "KeybindManager.hpp"
|
|
|
|
Keybind* KeybindManager::findKeybindByKey(int mod, xcb_keysym_t keysym) {
|
|
for(auto& key : KeybindManager::keybinds) {
|
|
if (keysym == key.getKeysym() && mod == key.getMod()) {
|
|
return &key;
|
|
}
|
|
}
|
|
return nullptr;
|
|
} |