lazebird.rabbit.key 0.9.0

dotnet add package lazebird.rabbit.key --version 0.9.0                
NuGet\Install-Package lazebird.rabbit.key -Version 0.9.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="lazebird.rabbit.key" Version="0.9.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add lazebird.rabbit.key --version 0.9.0                
#r "nuget: lazebird.rabbit.key, 0.9.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install lazebird.rabbit.key as a Cake Addin
#addin nuget:?package=lazebird.rabbit.key&version=0.9.0

// Install lazebird.rabbit.key as a Cake Tool
#tool nuget:?package=lazebird.rabbit.key&version=0.9.0                

rkey

描述

  • 快捷键管理库

目标

  • 支持多标签页多快捷键注册和管理

API

  1. public rkey()

    • 构造函数
  2. public bool exec(int tabindex, Keys k)

    • 快捷键执行函数;按照输入参数,找出匹配的快捷键回调接口,执行回调
    • tabindex:当前tab索引
    • k:当前的按键
  3. public bool bind(int tabindex, Keys k, Action<Keys> f)

    • 快捷键注册/绑定接口;提供快捷键的tab页,按键,和回调函数
    • tabindex:快捷键所处tab页
    • k:快捷键的键值
    • f:快捷键触发时的回调函数
    • 本接口派生了多个其他回调函数类型的接口,功能相似,不一一列出

示例

    rkey key;
    key = new rkey();
    key.bind(key.globalindex, Keys.Escape, Close);
    protected override bool ProcessDialogKey(Keys keyData)
    {
        if (key.exec(tabs.SelectedIndex, keyData)) return true;
        return base.ProcessDialogKey(keyData);
    }
Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.9.0 572 7/7/2019

support multi tabs, multi keys shortcut