diff --git a/tools/imglab/src/metadata_editor.cpp b/tools/imglab/src/metadata_editor.cpp index f718b9e0c..76177e893 100644 --- a/tools/imglab/src/metadata_editor.cpp +++ b/tools/imglab/src/metadata_editor.cpp @@ -354,8 +354,19 @@ on_keydown ( select_image(image_pos); } - - return; + // Make 'w' and 's' act like KEY_UP and KEY_DOWN + if ((key == 'w' || key == 'W') && !overlay_label.has_input_focus()) + { + key = base_window::KEY_UP; + } + else if ((key == 's' || key == 'S') && !overlay_label.has_input_focus()) + { + key = base_window::KEY_DOWN; + } + else + { + return; + } } if (key == base_window::KEY_UP) @@ -636,6 +647,9 @@ display_about( "command line. An example would be '--parts \"leye reye nose mouth\"'." ,0,0) << endl << endl; + sout << wrap_string("Press the down or s key to select the next image in the list and the up or w " + "key to select the previous one.",0,0) << endl << endl; + sout << wrap_string("Additionally, you can hold ctrl and then scroll the mouse wheel to zoom. A normal left click " "and drag allows you to navigate around the image. Holding ctrl and " "left clicking a rectangle will give it the label from the Next Label field. "