Made it so you can remove images by pressing ctrl+r.

This commit is contained in:
Davis King 2017-03-27 20:11:04 -04:00
parent df5a087b03
commit fad836df23
2 changed files with 9 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include <dlib/dir_nav.h>
const char* VERSION = "1.8";
const char* VERSION = "1.9";
const int JPEG_QUALITY = 90;

View File

@ -336,6 +336,12 @@ on_keydown (
last_keyboard_jump_pos_update = 0;
}
if (key == 'r' && (state&base_window::KBD_MOD_CONTROL))
{
remove_selected_images();
}
return;
}
@ -571,7 +577,8 @@ display_about(
"by hitting the tab key. Double clicking "
"a rectangle selects it and the delete key removes it. You can also mark "
"a rectangle as ignored by hitting the i key when it is selected. Ignored "
"rectangles are visually displayed with an X through them."
"rectangles are visually displayed with an X through them. You can remove an image "
"entirely by selecting it in the list on the left and pressing ctrl+r."
,0,0) << endl << endl;
sout << wrap_string("It is also possible to label object parts by selecting a rectangle and "