Ensure RelevantModifierKeyMask is updated on each modifier change.

- fixes bug where changing prefs in User Interaction
	  only took effect on restart.
This commit is contained in:
nick_m 2016-08-14 01:16:48 +10:00
parent 1c0651f7f4
commit c62026b567
4 changed files with 76 additions and 60 deletions

View file

@ -33,7 +33,7 @@ class ARDOUR_UI;
class ArdourKeyboard : public Gtkmm2ext::Keyboard
{
public:
ArdourKeyboard(ARDOUR_UI& ardour_ui) : ui(ardour_ui) {}
ArdourKeyboard(ARDOUR_UI&);
XMLNode& get_state (void);
int set_state (const XMLNode&, int version);
@ -44,6 +44,8 @@ class ArdourKeyboard : public Gtkmm2ext::Keyboard
ARDOUR_UI& ui;
void reset_relevant_modifier_key_mask ();
/** @param state The button state from a GdkEvent.
* @return true if the modifier state indicates snap modifier
*/