UNPKG
jjb-lc-designable
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
基于alibaba-designable源码二次封装的表单设计器。
github.com/alibaba/designable
jjb-lc-designable
/
core
/
shortcuts
/
CursorSwitch.ts
12 lines
(10 loc)
•
286 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
CursorType
,
KeyCode
,
Shortcut
}
from
'../models'
export
const
CursorSwitchSelection
=
new
Shortcut
({
codes
: [
KeyCode
.
Shift
,
KeyCode
.
S
],
handler
(
context
) {
const
engine = context?.
engine
if
(engine) { engine.
cursor
.
setType
(
CursorType
.
Selection
) } }, })