Preparing search index...
The search index is not available
Ace API Reference
Ace API Reference
src/keyboard/hash_handler
HashHandler
Class HashHandler
Hierarchy (
View Summary
)
MultiHashHandler
HashHandler
Index
Constructors
constructor
Properties
command
Key
Binding
commands
platform
Methods
add
Command
add
Commands
bind
Key
bind
Keys
find
Key
Command
get
Status
Text
handle
Keyboard
parse
Keys
remove
Command
remove
Commands
Constructors
constructor
new
HashHandler
(
config
?:
Command
[]
|
Record
<
string
,
CommandLike
>
,
platform
?:
Platform
,
)
:
HashHandler
Parameters
Optional
config
:
Command
[]
|
Record
<
string
,
CommandLike
>
Optional
platform
:
Platform
Returns
HashHandler
Properties
command
Key
Binding
commandKeyBinding
:
{}
commands
commands
:
Record
<
string
,
Command
>
platform
platform
:
Platform
Methods
add
Command
addCommand
(
command
:
Command
)
:
void
Parameters
command
:
Command
Returns
void
add
Commands
addCommands
(
commands
?:
Command
[]
|
Record
<
string
,
CommandLike
>
)
:
void
Parameters
Optional
commands
:
Command
[]
|
Record
<
string
,
CommandLike
>
Returns
void
bind
Key
bindKey
(
key
:
string
|
{
mac
?:
string
;
position
?:
number
;
win
?:
string
}
,
command
:
string
|
CommandLike
,
position
?:
number
,
)
:
void
Parameters
key
:
string
|
{
mac
?:
string
;
position
?:
number
;
win
?:
string
}
command
:
string
|
CommandLike
Optional
position
:
number
Returns
void
bind
Keys
bindKeys
(
keyList
:
Record
<
string
,
string
|
CommandLike
>
)
:
void
Parameters
keyList
:
Record
<
string
,
string
|
CommandLike
>
Returns
void
find
Key
Command
findKeyCommand
(
hashId
:
number
,
keyString
:
string
)
:
Command
Parameters
hashId
:
number
keyString
:
string
Returns
Command
get
Status
Text
getStatusText
(
editor
?:
any
,
data
?:
any
)
:
string
Parameters
Optional
editor
:
any
Optional
data
:
any
Returns
string
handle
Keyboard
handleKeyboard
(
data
:
any
,
hashId
:
number
,
keyString
:
string
,
keyCode
:
number
,
)
:
void
|
{
command
:
string
}
Parameters
data
:
any
hashId
:
number
keyString
:
string
keyCode
:
number
Returns
void
|
{
command
:
string
}
parse
Keys
parseKeys
(
keys
:
string
)
:
false
|
{
hashId
:
number
;
key
:
string
}
Accepts keys in the form ctrl+Enter or ctrl-Enter keys without modifiers or shift only
Parameters
keys
:
string
Returns
false
|
{
hashId
:
number
;
key
:
string
}
remove
Command
removeCommand
(
command
:
string
|
Command
,
keepCommand
?:
boolean
)
:
void
Parameters
command
:
string
|
Command
Optional
keepCommand
:
boolean
Returns
void
remove
Commands
removeCommands
(
commands
:
Record
<
string
,
string
|
CommandLike
>
)
:
void
Parameters
commands
:
Record
<
string
,
string
|
CommandLike
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
command
Key
Binding
commands
platform
Methods
add
Command
add
Commands
bind
Key
bind
Keys
find
Key
Command
get
Status
Text
handle
Keyboard
parse
Keys
remove
Command
remove
Commands
Ace API Reference
Loading...
Accepts keys in the form ctrl+Enter or ctrl-Enter keys without modifiers or shift only