Skip to content

Commit

Permalink
directvt#86 WIP: Add Ctrl modifier to hardcoded hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Oct 24, 2024
1 parent b9fb906 commit 111ee4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netxs/desktopio/terminal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7770,7 +7770,7 @@ namespace netxs::ui
//todo configurable Ctrl+Ins, Shift+Ins etc.
if (gear.handled) return; // Don't pass registered keyboard shortcuts.
if (io_log) log(prompt::key, ansi::hi(input::key::map::data(gear.keycode).name), gear.pressed ? " pressed" : " released");
if (gear.pressed && gear.meta(hids::anyShift | hids::anyCtrl))
if (gear.pressed && gear.meta(hids::anyShift) && gear.meta(hids::anyCtrl))
{
if (gear.keycode == input::key::LeftArrow && gear.meta(hids::anyAlt)){ base::riseup<tier::preview>(e2::form::upon::scroll::bypage::x, { .vector = dot_10 }); gear.set_handled(); return; }
else if (gear.keycode == input::key::RightArrow && gear.meta(hids::anyAlt)){ base::riseup<tier::preview>(e2::form::upon::scroll::bypage::x, { .vector = -dot_10 }); gear.set_handled(); return; }
Expand Down

0 comments on commit 111ee4a

Please sign in to comment.