Preparing search index...
The search index is not available
Ace API Reference
Ace API Reference
ace
Ace
CommandManager
Interface CommandManager
interface
CommandManager
{
byName
:
CommandMap
;
commands
:
CommandMap
;
addCommand
(
command
)
:
void
;
addCommands
(
command
)
:
void
;
addEventListener
(
name
,
callback
,
capturing
?
)
:
void
;
bindKey
(
key
,
command
,
position
?
)
:
void
;
bindKeys
(
keys
)
:
void
;
canExecute
(
command
,
editor
)
:
boolean
;
exec
(
command
,
editor
,
args
)
:
boolean
;
findKeyCommand
(
hashId
,
keyString
)
:
string
;
getStatusText
(
editor
,
data
)
:
string
;
handleKeyboard
(
data
,
hashId
,
keyString
,
keyCode
)
:
void
|
{
command
:
string
;
}
;
off
(
name
,
callback
)
:
void
;
on
(
name
,
callback
)
:
Function
;
on
(
name
,
callback
)
:
Function
;
on
(
name
,
callback
,
capturing
?
)
:
void
;
once
(
name
,
callback
)
:
void
;
parseKeys
(
keyPart
)
:
{
hashId
:
number
;
key
:
string
;
}
;
removeAllListeners
(
name
?
)
:
void
;
removeCommand
(
command
,
keepCommand
?
)
:
void
;
removeCommands
(
command
)
:
void
;
removeDefaultHandler
(
name
,
callback
)
:
void
;
removeEventListener
(
name
,
callback
)
:
void
;
removeListener
(
name
,
callback
)
:
void
;
replay
(
editor
)
:
void
;
setDefaultHandler
(
name
,
callback
)
:
void
;
toggleRecording
(
editor
)
:
void
;
}
Hierarchy (
view full
)
Ace
.
EventEmitter
CommandManager
Index
Properties
by
Name
commands
Methods
add
Command
add
Commands
add
Event
Listener
bind
Key
bind
Keys
can
Execute
exec
find
Key
Command
get
Status
Text
handle
Keyboard
off
on
once
parse
Keys
remove
All
Listeners
remove
Command
remove
Commands
remove
Default
Handler
remove
Event
Listener
remove
Listener
replay
set
Default
Handler
toggle
Recording
Properties
by
Name
by
Name
:
CommandMap
commands
commands
:
CommandMap
Methods
add
Command
add
Command
(
command
)
:
void
Parameters
command
:
Ace
.
Command
Returns
void
add
Commands
add
Commands
(
command
)
:
void
Parameters
command
:
Ace
.
Command
[]
Returns
void
add
Event
Listener
add
Event
Listener
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
bind
Key
bind
Key
(
key
,
command
,
position
?
)
:
void
Parameters
key
:
string
|
{
mac
?:
string
;
win
?:
string
;
}
command
:
Ace
.
CommandLike
Optional
position
:
number
Returns
void
bind
Keys
bind
Keys
(
keys
)
:
void
Parameters
keys
:
{
[
s
:
string
]
:
Function
;
}
[
s
:
string
]:
Function
Returns
void
can
Execute
can
Execute
(
command
,
editor
)
:
boolean
Parameters
command
:
string
|
Ace
.
Command
editor
:
Ace
.
Editor
Returns
boolean
exec
exec
(
command
,
editor
,
args
)
:
boolean
Parameters
command
:
string
|
string
[]
|
Ace
.
Command
editor
:
Ace
.
Editor
args
:
any
Returns
boolean
find
Key
Command
find
Key
Command
(
hashId
,
keyString
)
:
string
Parameters
hashId
:
number
keyString
:
string
Returns
string
get
Status
Text
get
Status
Text
(
editor
,
data
)
:
string
Parameters
editor
:
Ace
.
Editor
data
:
{}
Returns
string
handle
Keyboard
handle
Keyboard
(
data
,
hashId
,
keyString
,
keyCode
)
:
void
|
{
command
:
string
;
}
Parameters
data
:
{}
hashId
:
number
keyString
:
string
keyCode
:
string
|
number
Returns
void
|
{
command
:
string
;
}
off
off
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
on
on
(
name
,
callback
)
:
Function
Parameters
name
:
"exec"
callback
:
execEventHandler
Returns
Function
on
(
name
,
callback
)
:
Function
Parameters
name
:
"afterExec"
callback
:
execEventHandler
Returns
Function
on
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
once
once
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
parse
Keys
parse
Keys
(
keyPart
)
:
{
hashId
:
number
;
key
:
string
;
}
Parameters
keyPart
:
string
Returns
{
hashId
:
number
;
key
:
string
;
}
hash
Id
:
number
key
:
string
remove
All
Listeners
remove
All
Listeners
(
name
?
)
:
void
Parameters
Optional
name
:
string
Returns
void
remove
Command
remove
Command
(
command
,
keepCommand
?
)
:
void
Parameters
command
:
string
|
Ace
.
Command
Optional
keepCommand
:
boolean
Returns
void
remove
Commands
remove
Commands
(
command
)
:
void
Parameters
command
:
Ace
.
Command
[]
Returns
void
remove
Default
Handler
remove
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Event
Listener
remove
Event
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Listener
remove
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
replay
replay
(
editor
)
:
void
Parameters
editor
:
Ace
.
Editor
Returns
void
set
Default
Handler
set
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
toggle
Recording
toggle
Recording
(
editor
)
:
void
Parameters
editor
:
Ace
.
Editor
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
by
Name
commands
add
Command
add
Commands
add
Event
Listener
bind
Key
bind
Keys
can
Execute
exec
find
Key
Command
get
Status
Text
handle
Keyboard
off
on
once
parse
Keys
remove
All
Listeners
remove
Command
remove
Commands
remove
Default
Handler
remove
Event
Listener
remove
Listener
replay
set
Default
Handler
toggle
Recording
Ace API Reference
ace
src
ace
anchor
apply_delta
autocomplete
background_tokenizer
bidihandler
clipboard
commands
command_manager
default_commands
incremental_search_commands
multi_select_commands
occur_commands
config
css/editor-css
document
edit_session
editor
ext
Loading...
Generated using
TypeDoc