Catch keyboard events on notes.
git-svn-id: svn://localhost/ardour2/trunk@2188 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2cbaa2751c
commit
991fab113f
|
@ -22,7 +22,7 @@
|
|||
#include "midi_region_view.h"
|
||||
#include "public_editor.h"
|
||||
#include "editing_syms.h"
|
||||
|
||||
#include "keyboard.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -48,13 +48,21 @@ CanvasMidiEvent::on_event(GdkEvent* ev)
|
|||
return false;
|
||||
|
||||
switch (ev->type) {
|
||||
/*case GDK_ENTER_NOTIFY:
|
||||
case GDK_ENTER_NOTIFY:
|
||||
cerr << "ENTERED: " << ev->crossing.state << endl;
|
||||
if ( (ev->crossing.state & GDK_BUTTON2_MASK) ) {
|
||||
Keyboard::magic_widget_grab_focus();
|
||||
_item->grab_focus();
|
||||
/*if ( (ev->crossing.state & GDK_BUTTON2_MASK) ) {
|
||||
|
||||
}
|
||||
}*/
|
||||
break;
|
||||
*/
|
||||
|
||||
case GDK_LEAVE_NOTIFY:
|
||||
cerr << "LEAVE: " << ev->crossing.state << endl;
|
||||
Keyboard::magic_widget_drop_focus();
|
||||
//_item->drop_focus();
|
||||
break;
|
||||
|
||||
case GDK_KEY_PRESS:
|
||||
cerr << "EVENT KEY PRESS\n"; // doesn't work :/
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user