mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-02-04 08:50:15 +00:00
fixup to something
This commit is contained in:
@@ -1523,7 +1523,7 @@ EX namespace dialog {
|
||||
|
||||
keyhandler = [this, &ne] (int sym, int uni) {
|
||||
handleNavigation(sym, uni);
|
||||
if(uni == '\b' || uni == '\t' || joy_index(sym, deck::page_up)) {
|
||||
if(uni == '\b' || uni == '\t' || is_joy_index(sym, deck::key_pageup)) {
|
||||
ne.s = ne.s. substr(0, isize(ne.s)-utfsize_before(ne.s, isize(ne.s)));
|
||||
sscanf(ne.s.c_str(), LDF, ne.editwhat);
|
||||
apply_edit();
|
||||
@@ -1546,7 +1546,7 @@ EX namespace dialog {
|
||||
apply_slider();
|
||||
}
|
||||
#endif
|
||||
else if(sym == SDLK_HOME || joy_index(sym, deck::space)) {
|
||||
else if(sym == SDLK_HOME || is_joy_index(sym, deck::space)) {
|
||||
*ne.editwhat = ne.dft;
|
||||
apply_slider();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user