Release KSwitcher v0.6.127 (#73)
Confirm a single snippet suggestion with Enter before the focused application receives the key.
This commit was merged in pull request #73.
This commit is contained in:
1 parent
7626e6c9c2
commit
8b3fe947a6
9 files changed
+51
-22
No files matched your search
+2
-1
@@ -1571,7 +1571,8 @@ void App::selectSnippet(size_t row)
|
||||
}
|
||||
bool App::handleSnippetKey(DWORD vk, UINT mods)
|
||||
{
|
||||
const bool accept = vk == VK_TAB || (vk == VK_RETURN && snippetNavigated);
|
||||
const bool accept = vk == VK_TAB ||
|
||||
(vk == VK_RETURN && (snippetNavigated || snippetMatches.size() == 1));
|
||||
if (mods || (!accept && vk != VK_UP && vk != VK_DOWN && vk != VK_ESCAPE) ||
|
||||
!snippetPopup || !IsWindowVisible(snippetPopup) || !snippetPopupCurrent())
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user