ZRCola shortcut changed to Win+Z - Word has issues with Ctrl+Alt+Z
This commit is contained in:
parent
5c1f570a0e
commit
73cd87a39f
@ -58,10 +58,10 @@ wxZRColaFrame::wxZRColaFrame() :
|
|||||||
m_panel->m_decomposed->SetFocus();
|
m_panel->m_decomposed->SetFocus();
|
||||||
|
|
||||||
// Register global hotkey(s).
|
// Register global hotkey(s).
|
||||||
if (!RegisterHotKey(wxZRColaHKID_INVOKE_COMPOSE, MOD_ALT | MOD_CONTROL, 'Z'))
|
if (!RegisterHotKey(wxZRColaHKID_INVOKE_COMPOSE, MOD_WIN, 'Z'))
|
||||||
wxMessageBox(_("ZRCola keyboard shortcut Ctrl+Alt+Z could not be registered. Some functionality will not be available."), _("Warning"), wxOK | wxICON_WARNING);
|
wxMessageBox(_("ZRCola keyboard shortcut Win+Z could not be registered. Some functionality will not be available."), _("Warning"), wxOK | wxICON_WARNING);
|
||||||
if (!RegisterHotKey(wxZRColaHKID_INVOKE_DECOMPOSE, MOD_ALT | MOD_CONTROL | MOD_SHIFT, 'Z'))
|
if (!RegisterHotKey(wxZRColaHKID_INVOKE_DECOMPOSE, MOD_WIN | MOD_SHIFT, 'Z'))
|
||||||
wxMessageBox(_("ZRCola keyboard shortcut Ctrl+Alt+Shift+Z could not be registered. Some functionality will not be available."), _("Warning"), wxOK | wxICON_WARNING);
|
wxMessageBox(_("ZRCola keyboard shortcut Win+Shift+Z could not be registered. Some functionality will not be available."), _("Warning"), wxOK | wxICON_WARNING);
|
||||||
|
|
||||||
// Register frame specific hotkey(s).
|
// Register frame specific hotkey(s).
|
||||||
{
|
{
|
||||||
@ -119,6 +119,7 @@ void wxZRColaFrame::OnSendComposed(wxCommandEvent& event)
|
|||||||
// Return focus to the source window and send the input.
|
// Return focus to the source window and send the input.
|
||||||
::SetActiveWindow(m_hWndSource);
|
::SetActiveWindow(m_hWndSource);
|
||||||
::SetForegroundWindow(m_hWndSource);
|
::SetForegroundWindow(m_hWndSource);
|
||||||
|
::Sleep(200);
|
||||||
::SendInput(n, input.data(), sizeof(INPUT));
|
::SendInput(n, input.data(), sizeof(INPUT));
|
||||||
m_hWndSource = NULL;
|
m_hWndSource = NULL;
|
||||||
m_hotkey = -1;
|
m_hotkey = -1;
|
||||||
@ -155,6 +156,7 @@ void wxZRColaFrame::OnSendDecomposed(wxCommandEvent& event)
|
|||||||
// Return focus to the source window and send the input.
|
// Return focus to the source window and send the input.
|
||||||
::SetActiveWindow(m_hWndSource);
|
::SetActiveWindow(m_hWndSource);
|
||||||
::SetForegroundWindow(m_hWndSource);
|
::SetForegroundWindow(m_hWndSource);
|
||||||
|
::Sleep(200);
|
||||||
::SendInput(n, input.data(), sizeof(INPUT));
|
::SendInput(n, input.data(), sizeof(INPUT));
|
||||||
m_hWndSource = NULL;
|
m_hWndSource = NULL;
|
||||||
m_hotkey = -1;
|
m_hotkey = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user