mirror of
https://gitlab.com/c3d/db48x.git
synced 2024-09-29 05:36:58 +02:00
ui: Allow Shift-SPC to enter =
in an expression
When entering `Shift-SPC` in the expression mode, enter an `=` sign instead of a program separator (which makes no sense in an expression) We also reached the stage where we need to switch back to optimizing for space instead of speed. Fixes: #1189 Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
3c79ef7f9c
commit
3b176a4ac1
2 changed files with 5 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -394,7 +394,7 @@ DBGFLAGS_debug = -g
|
|||
|
||||
CFLAGS_debug += -Os -DDEBUG
|
||||
CFLAGS_release += $(CFLAGS_release_$(VARIANT))
|
||||
CFLAGS_release_dm42 = -O2
|
||||
CFLAGS_release_dm42 = -Os
|
||||
CFLAGS_release_dm32 = -O2
|
||||
CFLAGS_small += -Os
|
||||
CFLAGS_fast += -O2
|
||||
|
|
|
@ -4201,7 +4201,10 @@ bool user_interface::handle_editing(int key)
|
|||
if (shift)
|
||||
{
|
||||
// Shift R/S = PRGM enters a program symbol
|
||||
edit(L'«', PROGRAM);
|
||||
if (mode == ALGEBRAIC || mode == PARENTHESES)
|
||||
edit('=', ALGEBRAIC);
|
||||
else
|
||||
edit(L'«', PROGRAM);
|
||||
last = 0;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue