Projects
Eulaceura:Factory
drbd
_service:obs_scm:backport-DRBDmon-Enable-hotkey...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-DRBDmon-Enable-hotkey-for-details-actions-from-the-p.patch of Package drbd
From 0c234ec61d127d1ddec36a292994209882b9b68f Mon Sep 17 00:00:00 2001 From: Robert Altnoeder <robert.altnoeder@linbit.com> Date: Thu, 15 Feb 2024 16:11:36 +0100 Subject: [PATCH 060/100] DRBDmon: Enable hotkey for details & actions from the peer volumes list --- user/drbdmon/terminal/MDspPeerVolumes.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/user/drbdmon/terminal/MDspPeerVolumes.cpp b/user/drbdmon/terminal/MDspPeerVolumes.cpp index 4ffe760d..f0c7034c 100644 --- a/user/drbdmon/terminal/MDspPeerVolumes.cpp +++ b/user/drbdmon/terminal/MDspPeerVolumes.cpp @@ -92,7 +92,26 @@ bool MDspPeerVolumes::key_pressed(const uint32_t key) dsp_comp_hub.dsp_selector->refresh_display(); intercepted = true; } + else + if (is_cursor_nav()) + { + if (key == KeyCodes::ENTER) + { + dsp_comp_hub.dsp_selector->switch_to_display(DisplayId::display_page::PEER_VLM_DETAIL); + intercepted = true; + } + } + + if (!intercepted && (is_cursor_nav() || dsp_comp_hub.dsp_shared->have_peer_volumes_selection())) + { + if (key == static_cast<uint32_t> ('A') || key == static_cast<uint32_t> ('a')) + { + dsp_comp_hub.dsp_selector->switch_to_display(DisplayId::display_page::PEER_VLM_ACTIONS); + intercepted = true; + } + } } + return intercepted; } -- 2.33.1.windows.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2