mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r25669) -Codechange: Pass UCS-4 instead of UCS-2 characters to the hotkey handlers.
This commit is contained in:
parent
b911f4a452
commit
1567e32d89
|
@ -337,7 +337,7 @@ void SaveHotkeysToConfig()
|
||||||
SaveLoadHotkeys(true);
|
SaveLoadHotkeys(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleGlobalHotkeys(uint16 key, uint16 keycode)
|
void HandleGlobalHotkeys(WChar key, uint16 keycode)
|
||||||
{
|
{
|
||||||
for (HotkeyList **list = _hotkey_lists->Begin(); list != _hotkey_lists->End(); ++list) {
|
for (HotkeyList **list = _hotkey_lists->Begin(); list != _hotkey_lists->End(); ++list) {
|
||||||
if ((*list)->global_hotkey_handler == NULL) continue;
|
if ((*list)->global_hotkey_handler == NULL) continue;
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include "core/smallvec_type.hpp"
|
#include "core/smallvec_type.hpp"
|
||||||
#include "gfx_type.h"
|
#include "gfx_type.h"
|
||||||
#include "window_type.h"
|
#include "window_type.h"
|
||||||
|
#include "string_type.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All data for a single hotkey. The name (for saving/loading a configfile),
|
* All data for a single hotkey. The name (for saving/loading a configfile),
|
||||||
|
@ -67,6 +68,6 @@ void LoadHotkeysFromConfig();
|
||||||
void SaveHotkeysToConfig();
|
void SaveHotkeysToConfig();
|
||||||
|
|
||||||
|
|
||||||
void HandleGlobalHotkeys(uint16 key, uint16 keycode);
|
void HandleGlobalHotkeys(WChar key, uint16 keycode);
|
||||||
|
|
||||||
#endif /* HOTKEYS_H */
|
#endif /* HOTKEYS_H */
|
||||||
|
|
Loading…
Reference in New Issue