Skip to content

Commit

Permalink
Merge pull request #3770 from adamnovak/patch-1
Browse files Browse the repository at this point in the history
Explain why a keyboard would be ignored temporarily
  • Loading branch information
tekezo committed Apr 13, 2024
2 parents 7b16957 + 01f2348 commit 894d8b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/core/grabber/include/grabber/device_grabber.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,15 +911,19 @@ class device_grabber final : public pqrs::dispatcher::extra::dispatcher_client {

if (auto m = find_probable_stuck_events_manager(entry->get_device_id())) {
if (auto event = m->find_probable_stuck_event()) {
auto message = fmt::format("{0} is ignored temporarily until {1} is pressed again.",
auto message = fmt::format("Probable stuck key detected! "
"{0} is ignored temporarily until {1} is pressed again. "
"Key may have been held when keyboard was grabbed. "
"Is the keyboard reconnecting while in use?",
entry->get_device_name(),
nlohmann::json(*event).dump());
logger_unique_filter_.warn(message);

if (notification_message_manager_) {
notification_message_manager_->async_set_device_ungrabbable_temporarily_message(
entry->get_device_id(),
fmt::format("{0} is ignored temporarily until {1} is pressed again.",
fmt::format("Probable stuck key detected! "
"{0} is ignored temporarily until {1} is pressed again.",
entry->get_device_short_name(),
nlohmann::json(*event).dump()));
}
Expand Down

0 comments on commit 894d8b4

Please sign in to comment.