Insert subtitle when shift is held

This commit is contained in:
Garulf 2021-12-03 05:53:36 -05:00
parent f4edff71fe
commit 919d4515b9
2 changed files with 9 additions and 2 deletions

View file

@ -44,7 +44,7 @@
<KeyBinding Key="Tab" Command="{Binding ReplaceQueryWithResult}" />
<KeyBinding
Key="Tab"
Command="{Binding SelectPrevItemCommand}"
Command="{Binding ReplaceQueryWithResult}"
Modifiers="Shift" />
<KeyBinding
Key="I"

View file

@ -240,7 +240,14 @@ namespace Flow.Launcher.ViewModel
var result = results.SelectedItem?.Result;
if (result != null) // SelectedItem returns null if selection is empty.
{
ChangeQueryText(result.InsertText);
string _newText = String.Empty;
_newText = result.Title;
var SpecialKeyState = GlobalHotkey.Instance.CheckModifiers();
if (SpecialKeyState.ShiftPressed)
{
_newText = result.SubTitle;
}
ChangeQueryText(_newText);
}
});