Fix T71063: GPencil - Numpad return key cannot be used to confirm primitive

This commit is contained in:
Antonio Vazquez 2019-10-24 13:47:54 +02:00
parent 5fa7d8643f
commit 88a346420b
Notes: blender-bot 2024-01-16 18:05:25 +01:00
Referenced by issue #71063, GPencil: Numpad return key cannot be used to confirm primitive
2 changed files with 2 additions and 0 deletions

View File

@ -585,6 +585,7 @@ static int gpencil_interpolate_modal(bContext *C, wmOperator *op, const wmEvent
switch (event->type) {
case LEFTMOUSE: /* confirm */
case PADENTER:
case RETKEY: {
/* return to normal cursor and header status */
ED_area_status_text(tgpi->sa, NULL);

View File

@ -1608,6 +1608,7 @@ static int gpencil_primitive_modal(bContext *C, wmOperator *op, const wmEvent *e
}
case SPACEKEY: /* confirm */
case MIDDLEMOUSE:
case PADENTER:
case RETKEY: {
tgpi->flag = IDLE;
gpencil_primitive_interaction_end(C, op, win, tgpi);