// Adjust frame colour (become more transparent for internal tools)
set_frame_color();
+ // Only necessary for leave as a mouse_mode_change over a region
+ // automatically triggers an enter event.
if (_entered) {
- if (trackview.editor().internal_editing()) {
- // Switched in to internal editing mode while entered
- enter_internal();
- } else {
+ if (!trackview.editor().internal_editing()) {
// Switched out of internal editing mode while entered
leave_internal();
}
+ else if (trackview.editor().current_mouse_mode() == MouseContent) {
+ // hide cursor and ghost note after changing to internal edit mode
+ hide_verbose_cursor ();
+ remove_ghost_note ();
+ }
}
}
// Show ghost note under pencil
create_ghost_note(_last_event_x, _last_event_y);
}
- else {
- remove_ghost_note ();
- hide_verbose_cursor ();
- }
if (!_selection.empty()) {
// Grab keyboard for moving selected notes with arrow keys
{
hide_verbose_cursor ();
remove_ghost_note ();
+ _note_entered = false;
if (_grabbed_keyboard) {
Keyboard::magic_widget_drop_focus();