SaveCurrentDocument() public static method

Saves the current document.
public static SaveCurrentDocument ( ) : void
return void
示例#1
0
文件: Plug.cs 项目: devjerome/3P
        /// <summary>
        /// Called when the user enters any character in npp
        /// </summary>
        /// <param name="c"></param>
        public static void OnSciCharTyped(char c)
        {
            // CTRL + S : char code 19
            if (c == (char)19)
            {
                Npp.Undo();
                Npp.SaveCurrentDocument();
                return;
            }

            // we are still entering a keyword
            if (Abl.IsCharAllowedInVariables(c))
            {
                ActionsAfterUpdateUi.Enqueue(() => {
                    OnCharAddedWordContinue(c);
                });
            }
            else
            {
                ActionsAfterUpdateUi.Enqueue(() => {
                    OnCharAddedWordEnd(c);
                });
            }
        }