Simplify re: lenormf
This commit is contained in:
parent
4cac29d98c
commit
f36a2870b8
|
@ -677,7 +677,7 @@ Optional<Key> NCursesUI::get_next_key()
|
||||||
}
|
}
|
||||||
|
|
||||||
const Codepoint c3 = wgetch(m_window);
|
const Codepoint c3 = wgetch(m_window);
|
||||||
function<Key(Key)> f = nullptr;
|
function<Key(Key)> f;
|
||||||
switch (c3)
|
switch (c3)
|
||||||
{
|
{
|
||||||
case '2': f = shift; break;
|
case '2': f = shift; break;
|
||||||
|
@ -688,7 +688,7 @@ Optional<Key> NCursesUI::get_next_key()
|
||||||
case '7': f = alt_ctrl; break;
|
case '7': f = alt_ctrl; break;
|
||||||
case '8': f = shift_alt_ctrl; break;
|
case '8': f = shift_alt_ctrl; break;
|
||||||
}
|
}
|
||||||
if ( f == nullptr )
|
if (f)
|
||||||
{
|
{
|
||||||
ungetch(c3); ungetch(c2); ungetch(c1);
|
ungetch(c3); ungetch(c2); ungetch(c1);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user