Skip to content

Commit

Permalink
German keyboard shortcuts:
Browse files Browse the repository at this point in the history
* Replace CTRL + SPACE with CTRL + ALT + S for search.
* CTRL + SPACE is used for resetting the character properties.

Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: I99ed1e99cf7e1ea23344961d36cce42d72cbba5f
  • Loading branch information
gokaysatir committed Oct 6, 2023
1 parent e290d07 commit 2bb46fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/src/map/handler/Map.Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ L.Map.Keyboard = L.Handler.extend({
return true;
}

if (this._isCtrlKey(e) && !e.shiftKey && !e.altKey && e.key === ' ' && app.UI.language.fromURL === 'de' && this._map.getDocType() === 'text') {
if (this._isCtrlKey(e) && !e.shiftKey && e.altKey && e.keyCode === this.keyCodes.S && app.UI.language.fromURL === 'de' && this._map.getDocType() === 'text') {
this._map.fire('focussearch');
e.preventDefault();
return true;
Expand Down

0 comments on commit 2bb46fb

Please sign in to comment.