Skip to content

Commit

Permalink
GUI2/Text Box Base: made ctrl+a select all text
Browse files Browse the repository at this point in the history
Previously it was an alias for HOME, which is unintuitive and rather useless.
  • Loading branch information
Vultraz committed Aug 25, 2017
1 parent 8ec19db commit 7ce090a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/widgets/text_box_base.cpp
Expand Up @@ -513,9 +513,8 @@ void text_box_base::signal_handler_sdl_key_down(const event::ui_event event,
return;
}

// If ctrl-a is used for home drop the styled_widget modifier
modifier = static_cast<SDL_Keymod>(modifier & ~KMOD_CTRL);
FALLTHROUGH;
select_all();
break;

case SDLK_HOME:
handle_key_home(modifier, handled);
Expand Down

0 comments on commit 7ce090a

Please sign in to comment.