summaryrefslogtreecommitdiffstats
path: root/browser/src/map/handler/Map.Keyboard.js
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@gmail.com>2023-09-28 11:12:03 +0300
committerGökay ŞATIR <gokaysatir@gmail.com>2023-09-29 17:14:09 +0300
commitdc75c1e8bfbc307f0ec5f71b3bcd3cc25bef6558 (patch)
treef6ce4e6164384b5550f1b641c0a33e7cc678ac19 /browser/src/map/handler/Map.Keyboard.js
parentGerman shortcuts: (diff)
downloadonline-dc75c1e8bfbc307f0ec5f71b3bcd3cc25bef6558.tar.gz
online-dc75c1e8bfbc307f0ec5f71b3bcd3cc25bef6558.zip
Add note for the CTRL+SHIFT+L combination.
Use sendUnoCommand insted of sendmessage. Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Id123864d897a2838066c97bb649c1a355b44dde1
Diffstat (limited to 'browser/src/map/handler/Map.Keyboard.js')
-rw-r--r--browser/src/map/handler/Map.Keyboard.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/browser/src/map/handler/Map.Keyboard.js b/browser/src/map/handler/Map.Keyboard.js
index 7b6584d9ec..389feb0c2d 100644
--- a/browser/src/map/handler/Map.Keyboard.js
+++ b/browser/src/map/handler/Map.Keyboard.js
@@ -474,7 +474,7 @@ L.Map.Keyboard = L.Handler.extend({
}
if (ev.type === 'keydown' && !ev.altKey && ev.shiftKey && keyCode === this.keyCodes.F3 && app.UI.language.fromURL === 'de') {
- app.socket.sendMessage('uno .uno:ChangeCaseRotateCase');
+ this._map.sendUnoCommand('.uno:ChangeCaseRotateCase');
ev.preventDefault();
return;
}
@@ -511,7 +511,7 @@ L.Map.Keyboard = L.Handler.extend({
this._map.fire('fullscreen');
}
else if (docType === 'text' && !this.modifier && app.UI.language.fromURL === 'de') {
- app.socket.sendMessage('uno .uno:GoToPage');
+ this._map.sendUnoCommand('.uno:GoToPage');
}
return;
@@ -673,7 +673,8 @@ L.Map.Keyboard = L.Handler.extend({
e.preventDefault();
}
- if (this._isCtrlKey(e) && e.shiftKey && e.key === 'L') {
+ // CTRL + SHIFT + L is added to the core side for writer. Others can also be checked.
+ if (this._isCtrlKey(e) && e.shiftKey && e.key === 'L' && this._map.getDocType() !== 'text') {
app.socket.sendMessage('uno .uno:DefaultBullet');
e.preventDefault();
return true;