projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
055f4e7
)
minor code cleanup
author
Holger Schemel
<info@artsoft.org>
Thu, 7 Jan 2021 23:05:49 +0000
(
00:05
+0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 7 Jan 2021 23:05:49 +0000
(
00:05
+0100)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index d7e5016a54a7a71c0ea09416b53841db89fd4ac3..81643f1c87be7a397c623d50a703721b2f9d0673 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-4258,19
+4258,13
@@
static void HandleTypeNameExt(boolean initialize, Key key)
name[xpos] = 0;
}
- else if (key == KSYM_Return)
+ else if (key == KSYM_Return
|| key == KSYM_Escape
)
{
- StopTextInput();
-
- setTypeNameValues(name, pos, TRUE);
+ boolean changed = (key == KSYM_Return);
- active = FALSE;
- }
- else if (key == KSYM_Escape)
- {
StopTextInput();
- setTypeNameValues(name, pos,
FALSE
);
+ setTypeNameValues(name, pos,
changed
);
active = FALSE;
}