When assigning simple key for screenshot hotkey,
...display "Warning: screenshot hotkeys not combined with Control or Alt keys." Probably need to also allow special keys like functions keys or PrintScreen and maybe can be used for other game functions (fullscreen etc...)
This commit is contained in:
parent
2e545789f4
commit
6d2080e181
1 changed files with 7 additions and 0 deletions
|
@ -343,6 +343,13 @@ void show_hotkeys_dialog (display & disp, config *save_config)
|
|||
(mod & KMOD_CTRL) != 0, (mod & KMOD_ALT) != 0, (mod & KMOD_LMETA) != 0);
|
||||
|
||||
menu_.change_item(menu_.selection(), 1, font::NULL_MARKUP + newhk.get_name());
|
||||
|
||||
if ((newhk.get_id() == hotkey::HOTKEY_SCREENSHOT
|
||||
|| newhk.get_id() == hotkey::HOTKEY_MAP_SCREENSHOT)
|
||||
&& (mod & KMOD_CTRL) == 0 && (mod & KMOD_ALT) == 0
|
||||
&& (mod & KMOD_LMETA) == 0) {
|
||||
gui::message_dialog(disp,"", _("Warning: screenshot hotkeys not combined with Control or Alt keys.")).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue