Skip to content

Commit

Permalink
[Commands] Added undo/redo keyboard shortcuts to the Shurtcuts & Inpu…
Browse files Browse the repository at this point in the history
…t Reference window (under the menu bar, about section)
  • Loading branch information
PanosK92 committed Nov 19, 2023
1 parent edcc783 commit a30d952
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions editor/Widgets/MenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,16 @@ namespace

static const Shortcut shortcuts[] =
{
{(char*)"Ctrl+P", (char*)"Open shortcuts & input reference window"},
{(char*)"Ctrl+S", (char*)"Save world"},
{(char*)"Ctrl+L", (char*)"Load world"},
{(char*)"Right click", (char*)"Enable first person camera control"},
{(char*)"W, A, S, D", (char*)"Move camera"},
{(char*)"Q, E", (char*)"Change camera elevation"},
{(char*)"F", (char*)"Center camera on object"},
{(char*)"Alt+Enter", (char*)"Toggle fullscreen viewport"}
{(char*)"Ctrl+P", (char*)"Open shortcuts & input reference window"},
{(char*)"Ctrl+S", (char*)"Save world"},
{(char*)"Ctrl+L", (char*)"Load world"},
{(char*)"Right click", (char*)"Enable first person camera control"},
{(char*)"W, A, S, D", (char*)"Move camera"},
{(char*)"Q, E", (char*)"Change camera elevation"},
{(char*)"F", (char*)"Center camera on object"},
{(char*)"Alt+Enter", (char*)"Toggle fullscreen viewport"},
{(char*)"Ctrl+Z", (char*)"Undo"},
{(char*)"Ctrl+Shift+Z", (char*)"Redo"}
};

ImGui::NewLine();
Expand Down

1 comment on commit a30d952

@ApostolosBouz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I was about to do that today.

Please sign in to comment.