add ctrl+d for quit
This commit is contained in:
parent
7522be5a3a
commit
c55ad6a8dc
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue