lazebird.rabbit.key 0.9.0

.NET Framework 4.7.2
Install-Package lazebird.rabbit.key -Version 0.9.0
dotnet add package lazebird.rabbit.key --version 0.9.0
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: lazebird.rabbit.key, 0.9.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 Versions
.NET Framework net472 net48
Compatible target framework(s)
Additional computed target framework(s)
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 348 7/7/2019

support multi tabs, multi keys shortcut