mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Insert subtitle when shift is held
This commit is contained in:
parent
f4edff71fe
commit
919d4515b9
2 changed files with 9 additions and 2 deletions
|
|
@ -44,7 +44,7 @@
|
|||
<KeyBinding Key="Tab" Command="{Binding ReplaceQueryWithResult}" />
|
||||
<KeyBinding
|
||||
Key="Tab"
|
||||
Command="{Binding SelectPrevItemCommand}"
|
||||
Command="{Binding ReplaceQueryWithResult}"
|
||||
Modifiers="Shift" />
|
||||
<KeyBinding
|
||||
Key="I"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue