Browse Source

Use Ctrl as modifier instead of Alt

Signed-off-by: falkTX <falktx@falktx.com>
tags/2021-03-15
falkTX 3 years ago
parent
commit
d83e00f4af
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 7 additions and 7 deletions
  1. +3
    -3
      ports/vitalium/source/interface/editor_components/line_editor.cpp
  2. +1
    -1
      ports/vitalium/source/interface/editor_components/synth_preset_selector.cpp
  3. +3
    -3
      ports/vitalium/source/interface/editor_components/synth_slider.cpp

+ 3
- 3
ports/vitalium/source/interface/editor_components/line_editor.cpp View File

@@ -385,7 +385,7 @@ void LineEditor::paintLine(const MouseEvent& e) {
float from_x = (1.0f * active_grid_section_) / grid_size_x_;
float to_x = (active_grid_section_ + 1.0f) / grid_size_x_;

if (!e.mods.isAltDown() && grid_size_y_ > 0) {
if (!e.mods.isCtrlDown() && grid_size_y_ > 0) {
float snap_radius = getSnapRadiusY();
float snapped_y = getSnappedY(percent_y);
if (fabsf(snapped_y - percent_y) < snap_radius)
@@ -609,9 +609,9 @@ void LineEditor::drawDrag(const MouseEvent& e) {
return;

if (active_point_ >= 0)
movePoint(active_point_, e.position, !e.mods.isAltDown());
movePoint(active_point_, e.position, !e.mods.isCtrlDown());
else if (active_power_ >= 0)
movePower(active_power_, e.position, e.mods.isShiftDown(), e.mods.isAltDown());
movePower(active_power_, e.position, e.mods.isShiftDown(), e.mods.isCtrlDown());

resetPositions();
}


+ 1
- 1
ports/vitalium/source/interface/editor_components/synth_preset_selector.cpp View File

@@ -117,7 +117,7 @@ void SynthPresetSelector::resized() {

void SynthPresetSelector::buttonClicked(Button* clicked_button) {
if (clicked_button == menu_button_.get()) {
if (ModifierKeys::getCurrentModifiersRealtime().isAltDown())
if (ModifierKeys::getCurrentModifiersRealtime().isCtrlDown())
showAlternatePopupMenu(menu_button_.get());
else
showPopupMenu(menu_button_.get());


+ 3
- 3
ports/vitalium/source/interface/editor_components/synth_slider.cpp View File

@@ -247,7 +247,7 @@ PopupItems SynthSlider::createPopupMenu() {
void SynthSlider::mouseDown(const MouseEvent& e) {
SynthBase* synth = synth_interface_->getSynth();

if (e.mods.isAltDown()) {
if (e.mods.isCtrlDown()) {
showTextEntry();
return;
}
@@ -275,7 +275,7 @@ void SynthSlider::mouseDown(const MouseEvent& e) {
}

void SynthSlider::mouseDrag(const MouseEvent& e) {
if (e.mods.isAltDown())
if (e.mods.isCtrlDown())
return;
float multiply = 1.0f;
@@ -313,7 +313,7 @@ void SynthSlider::mouseDrag(const MouseEvent& e) {
}

void SynthSlider::mouseUp(const MouseEvent& e) {
if (e.mods.isPopupMenu() || e.mods.isAltDown())
if (e.mods.isPopupMenu() || e.mods.isCtrlDown())
return;

setDefaultRange();


Loading…
Cancel
Save