keyboard.zc
来自「实现树形结构」· ZC 代码 · 共 133 行
ZC
133 行
//[c]Keyboard Constants
//[c]
//[of]: license
//[c] Code Browser - a folding text editor for programmers
//[c] Copyright (C) 2003-07 Marc Kerbiquet
//[c]
//[c] This program is free software; you can redistribute it and/or modify
//[c] it under the terms of the GNU General Public License as published by
//[c] the Free Software Foundation; either version 2 of the License, or
//[c] (at your option) any later version.
//[c]
//[c] This program is distributed in the hope that it will be useful,
//[c] but WITHOUT ANY WARRANTY; without even the implied warranty of
//[c] MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//[c] GNU General Public License for more details.
//[c]
//[c] You should have received a copy of the GNU General Public License
//[c] along with this program; if not, write to the Free Software
//[c] Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//[cf]
//[c]
public
equ SHIFT = 1
equ CTRL = 2
equ ALT = 4
equ VK CANCEL = 0xFF6B // Break is cancel on windows
equ VK BACK = 0xFF08
equ VK TAB = 0xFF09
equ VK CLEAR = 0xFF0B
equ VK RETURN = 0xFF0D
// emulated (not GTK+)
equ VK SHIFT = 0xFFFFFF00
equ VK CONTROL = 0xFFFFFF01
equ VK MENU = 0xFFFFFF02
equ VK PAUSE = 0xFF13
equ VK CAPITAL = 0xFFE5
equ VK ESCAPE = 0xFF1B
equ VK SPACE = 0x020
equ VK PRIOR = 0xFF55
equ VK NEXT = 0xFF56
equ VK END = 0xFF57
equ VK HOME = 0xFF50
equ VK LEFT = 0xFF51
equ VK UP = 0xFF52
equ VK RIGHT = 0xFF53
equ VK DOWN = 0xFF54
equ VK SELECT = 0xFF60
equ VK PRINT = 0xFF61
equ VK EXECUTE = 0xFF62
equ VK INSERT = 0xFF63
equ VK DELETE = 0xFFFF
equ VK HELP = 0xFF6A
// vk 0 thru vk 9 are the same as ASCII '0' thru '9' (= 0x30 - = 0x39)
// vk A thru vk Z are the same as ASCII 'A' thru 'Z' (= 0x41 - = 0x5A)
equ VK LWIN = 0xFFE7
equ VK RWIN = 0xFFE8
//equ VK APPS =
equ VK NUMPAD0 = 0xFFB0
equ VK NUMPAD1 = 0xFFB1
equ VK NUMPAD2 = 0xFFB2
equ VK NUMPAD3 = 0xFFB3
equ VK NUMPAD4 = 0xFFB4
equ VK NUMPAD5 = 0xFFB5
equ VK NUMPAD6 = 0xFFB6
equ VK NUMPAD7 = 0xFFB7
equ VK NUMPAD8 = 0xFFB8
equ VK NUMPAD9 = 0xFFB9
equ VK MULTIPLY = 0xFFAA
equ VK ADD = 0xFFAB
equ VK SEPARATOR = 0xFFAC
equ VK SUBTRACT = 0xFFAD
equ VK DECIMAL = 0xFFAE
equ VK DIVIDE = 0xFFAF
equ VK F1 = 0xFFBE
equ VK F2 = 0xFFBF
equ VK F3 = 0xFFC0
equ VK F4 = 0xFFC1
equ VK F5 = 0xFFC2
equ VK F6 = 0xFFC3
equ VK F7 = 0xFFC4
equ VK F8 = 0xFFC5
equ VK F9 = 0xFFC6
equ VK F10 = 0xFFC7
equ VK F11 = 0xFFC8
equ VK F12 = 0xFFC9
equ VK F13 = 0xFFCA
equ VK F14 = 0xFFCB
equ VK F15 = 0xFFCC
equ VK F16 = 0xFFCD
equ VK F17 = 0xFFCE
equ VK F18 = 0xFFCF
equ VK F19 = 0xFFD0
equ VK F20 = 0xFFD1
equ VK F21 = 0xFFD2
equ VK F22 = 0xFFD3
equ VK F23 = 0xFFD4
equ VK F24 = 0xFFD5
equ VK NUMLOCK = 0xFF7F
equ VK SCROLL = 0xFF14
equ VK LSHIFT = 0xFFE1
equ VK RSHIFT = 0xFFE2
equ VK LCONTROL = 0xFFE3
equ VK RCONTROL = 0xFFE4
equ VK LMENU = 0xFFE9
equ VK RMENU = 0xFFEA
//equ VK OEM 1 = 0xBA
//equ VK OEM PLUS = 0xBB
//equ VK OEM COMMA = 0xBC
//equ VK OEM MINUS = 0xBD
//equ VK OEM PERIOD = 0xBE
//equ VK OEM 2 = 0xBF
//equ VK OEM 3 = 0xC0
equ VK OEM 4 = 0x5B
equ VK OEM 5 = 0x5C
equ VK OEM 6 = 0x5D
//equ VK OEM 7 = 0xDE
//equ VK OEM 8 = 0xDF
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?