Skip to content

Commit

Permalink
Merge pull request #968 from Microsoft/jwilaby/#863-deep-link-double-…
Browse files Browse the repository at this point in the history
…click

#863 - Change deep links to require a double click
  • Loading branch information
Justin Wilaby authored Oct 10, 2018
2 parents 9f47185 + 0112ff2 commit 2713b6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class ServicesExplorer extends ServicePane<ServicesExplorerProps> {
<li
key={ index }
className={ `${ styles.link } ${ toAnimate[service.id] ? styles.animateHighlight : '' } ` }
onClick={ this.onLinkClick }
onDoubleClick={this.onLinkClick}
onKeyPress={ this.onHandleKeyPress }
data-index={ index }
tabIndex={ 0 }>
Expand Down
6 changes: 3 additions & 3 deletions packages/app/main/src/services/contextMenuService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

import { Menu, MenuItem, MenuItemConstructorOptions } from 'electron';
import { Menu, MenuItemConstructorOptions } from 'electron';

export class ContextMenuService {
private static currentMenu: Menu;

public static showMenuAndWaitForInput(options: Partial<MenuItemConstructorOptions>[]): Promise<any> {
public static showMenuAndWaitForInput(options: Partial<MenuItemConstructorOptions>[] = []): Promise<any> {
if (ContextMenuService.currentMenu) {
ContextMenuService.currentMenu.closePopup();
}
Expand All @@ -53,7 +53,7 @@ export class ContextMenuService {
});
const menu = ContextMenuService.currentMenu = Menu.buildFromTemplate(template);

menu.popup();
menu.popup({});
});
}
}

0 comments on commit 2713b6a

Please sign in to comment.