Skip to content

Commit

Permalink
Add CTRL + ALT + O as open document shortcut.
Browse files Browse the repository at this point in the history
* Sends "UI_OpenDocument" message to integrator.
* The post message needs to be handled by the integrator.

Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: If57bdd1f7db496766fbb7082ffeff855aba4e97c
  • Loading branch information
gokaysatir committed Oct 6, 2023
1 parent aa0c4db commit b5af4e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions browser/src/map/handler/Map.Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,13 @@ L.Map.Keyboard = L.Handler.extend({
return true;
}

// CTRL + ALT + O to open a document. This needs to be handled by the integrator.
if (this._isCtrlKey(e) && e.altKey && e.key.toUpperCase() === 'O') {
this._map.fire('postMessage', { msgId: 'UI_OpenDocument' });
e.preventDefault();
return true;
}

if (this._isCtrlKey(e) && e.shiftKey && e.key === '?') {
this._map.showHelp('keyboard-shortcuts-content');
e.preventDefault();
Expand Down
Binary file added libsimd.a
Binary file not shown.

0 comments on commit b5af4e0

Please sign in to comment.