add ctrl+d for quit

This commit is contained in:
Laura Hausmann 2019-12-10 10:17:29 +01:00
parent 7522be5a3a
commit c55ad6a8dc
Signed by: zotan
GPG key ID: 5EC1D38FFC321311
2 changed files with 10 additions and 3 deletions

View file

@ -3,8 +3,6 @@
<component name="ChangeListManager">
<list default="true" id="36e5cfaf-0aa9-4137-8110-a5678a9c5443" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/.idea.tgcli/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.tgcli/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/telegram/Command.cs" beforeDir="false" afterPath="$PROJECT_DIR$/telegram/Command.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/telegram/Util.cs" beforeDir="false" afterPath="$PROJECT_DIR$/telegram/Util.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/telegram/tgcli.cs" beforeDir="false" afterPath="$PROJECT_DIR$/telegram/tgcli.cs" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@ -121,7 +119,7 @@
<workItem from="1575536428992" duration="12000" />
<workItem from="1575536474314" duration="39215000" />
<workItem from="1575724030612" duration="6335000" />
<workItem from="1575806456895" duration="26434000" />
<workItem from="1575806456895" duration="27135000" />
</task>
<servers />
</component>

View file

@ -20,6 +20,9 @@ namespace telegram
* make Util.getActualStringWidth better
* make the command system not shit (classes & manager & /help etc)
* refactor everything
* publish AUR package
* make login less frustrating
* add option to disable terminal bell
* command /s /search -> list matching chats, option 1-n, archived indicator
* secret chats!
* automatically download and show images (or with a command)
@ -297,6 +300,12 @@ namespace telegram
ScreenUpdate();
return;
}
if (key.Key == ConsoleKey.D && key.Modifiers.HasFlag(ConsoleModifiers.Control))
{
Command.ParseCommand("q");
ScreenUpdate();
return;
}
if (!specialKeys.Contains(key.Key))
{
currentInputLine += key.KeyChar;