13
0

use ::main_modifier_state() in some more places

This commit is contained in:
Paul Davis 2015-10-02 22:06:02 -04:00
parent ef6b0bdb07
commit 9476657cd1

View File

@ -451,7 +451,7 @@ Strip::select_event (Button&, ButtonState bs)
if (bs == press) {
int ms = _surface->mcp().modifier_state();
int ms = _surface->mcp().main_modifier_state();
if (ms & MackieControlProtocol::MODIFIER_CMDALT) {
_controls_locked = !_controls_locked;
@ -484,7 +484,7 @@ Strip::vselect_event (Button&, ButtonState bs)
{
if (bs == press) {
int ms = _surface->mcp().modifier_state();
int ms = _surface->mcp().main_modifier_state();
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
@ -571,7 +571,7 @@ Strip::handle_button (Button& button, ButtonState bs)
_surface->mcp().add_down_button ((AutomationType) control->parameter().type(), _surface->number(), _index);
float new_value;
int ms = _surface->mcp().modifier_state();
int ms = _surface->mcp().main_modifier_state();
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
/* reset to default/normal value */