mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 01:25:37 -05:00
Add ability to handle enter key propagation for input model components (#7524)
* Add ability to stop enter key propagation for input model components * Fix spacing * onInputEntered -> onEnterKeyPressed
This commit is contained in:
9
src/sql/sqlops.proposed.d.ts
vendored
9
src/sql/sqlops.proposed.d.ts
vendored
@@ -514,6 +514,11 @@ declare module 'sqlops' {
|
||||
columns?: number;
|
||||
min?: number;
|
||||
max?: number;
|
||||
/**
|
||||
* Whether to stop key event propagation when enter is pressed in the input box. Leaving this as false
|
||||
* means the event will propagate up to any parents that have handlers (such as validate on Dialogs)
|
||||
*/
|
||||
stopEnterPropagation?: boolean;
|
||||
}
|
||||
|
||||
export interface TableColumn {
|
||||
@@ -703,6 +708,10 @@ declare module 'sqlops' {
|
||||
|
||||
export interface InputBoxComponent extends Component, InputBoxProperties {
|
||||
onTextChanged: vscode.Event<any>;
|
||||
/**
|
||||
* Event that's fired whenever enter is pressed within the input box
|
||||
*/
|
||||
onEnterKeyPressed: vscode.Event<string>;
|
||||
}
|
||||
|
||||
export interface RadioButtonComponent extends Component, RadioButtonProperties {
|
||||
|
||||
Reference in New Issue
Block a user