Open enums with Alt+Space (also non-breaking)
This commit is contained in:
parent
da6d77cffd
commit
62bc550d3a
|
@ -750,8 +750,10 @@ export class AutoComplete {
|
||||||
}
|
}
|
||||||
// autocomplete shown or not, cursor anywhere
|
// autocomplete shown or not, cursor anywhere
|
||||||
switch (evt.key) {
|
switch (evt.key) {
|
||||||
|
// The first is a non-breaking space, the second is a regular space.
|
||||||
|
case ' ':
|
||||||
case ' ': {
|
case ' ': {
|
||||||
if (evt.ctrlKey) {
|
if (evt.ctrlKey || evt.altKey) {
|
||||||
if (this.isActive && this.isReplaceable) {
|
if (this.isActive && this.isReplaceable) {
|
||||||
// ctrl-space to toggle details for selected item
|
// ctrl-space to toggle details for selected item
|
||||||
this.toggleDetails();
|
this.toggleDetails();
|
||||||
|
@ -759,6 +761,8 @@ export class AutoComplete {
|
||||||
// ctrl-space to force show autocomplete
|
// ctrl-space to force show autocomplete
|
||||||
this.show(false, true);
|
this.show(false, true);
|
||||||
}
|
}
|
||||||
|
evt.preventDefault();
|
||||||
|
evt.stopPropagation();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue