ref: e7530c204ba05aaf5443803a4d235ddb2785680e
parent: e7d741e82a935ee6cf079e68f2a8b6856d7f0323
author: Sigrid Haflínudóttir <[email protected]>
date: Thu Jan 2 16:02:07 EST 2020
text box: enter manual edit on right click
--- a/src/microui.c
+++ b/src/microui.c
@@ -812,8 +812,10 @@
static int number_textbox(mu_Context *ctx, mu_Real *value, mu_Rect r, mu_Id id) {
- if (ctx->mouse_pressed == MU_MOUSE_LEFT &&
- ctx->key_down & MU_KEY_SHIFT &&
+ if (((ctx->mouse_pressed == MU_MOUSE_LEFT && ctx->key_down & MU_KEY_SHIFT)
+ ||
+ ctx->mouse_pressed == MU_MOUSE_RIGHT
+ ) &&
ctx->hover == id)
{
ctx->number_editing = id;