Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Fix Enter to send switch internationalization.

Anders Kaseorg03f073d762e0
diff --git a/static/templates/compose.hbs b/static/templates/compose.hbs
index 4335842efa9..dbd8cb03e38 100644
--- a/static/templates/compose.hbs
+++ b/static/templates/compose.hbs
@@ -109,17 +109,15 @@
<span id="compose_limit_indicator"></span>
<div class="enter_sends">
<span class="enter_sends_true">
- <kbd>Enter</kbd>
{{#tr}}
- <kbd class="hide">Enter</kbd>
- <span>to send</span>
+ <z-shortcut></z-shortcut> to send
+ {{#*inline "z-shortcut"}}<kbd>Enter</kbd>{{/inline}}
{{/tr}}
</span>
<span class="enter_sends_false">
- <kbd>Ctrl</kbd> + <kbd>Enter</kbd>
{{#tr}}
- <kbd class="hide">Enter</kbd>
- <span>to send</span>
+ <z-shortcut></z-shortcut> to send
+ {{#*inline "z-shortcut"}}<kbd>Ctrl</kbd>+<kbd>Enter</kbd>{{/inline}}
{{/tr}}
</span>
<i class="fa fa-caret-down" aria-hidden="true"></i>
diff --git a/static/templates/compose_select_enter_behaviour_popover.hbs b/static/templates/compose_select_enter_behaviour_popover.hbs
index 3926b701438..c8e293a884e 100644
--- a/static/templates/compose_select_enter_behaviour_popover.hbs
+++ b/static/templates/compose_select_enter_behaviour_popover.hbs
@@ -4,14 +4,14 @@
<div class="enter_sends_choice_text">
<span>
{{#tr}}
- <z-button><kbd>Enter</kbd></z-button>
- <span>to send</span>
+ <z-shortcut></z-shortcut> to send
+ {{#*inline "z-shortcut"}}<kbd>Enter</kbd>{{/inline}}
{{/tr}}
</span>
<span class="enter_sends_minor">
{{#tr}}
- <z-button><kbd>Ctrl</kbd> + <kbd>Enter</kbd></z-button>
- <span>to add a new line</span>
+ <z-shortcut></z-shortcut> to add a new line
+ {{#*inline "z-shortcut"}}<kbd>Ctrl</kbd>+<kbd>Enter</kbd>{{/inline}}
{{/tr}}
</span>
</div>
@@ -21,14 +21,14 @@
<div class="enter_sends_choice_text">
<span>
{{#tr}}
- <z-button><kbd>Ctrl</kbd> + <kbd>Enter</kbd></z-button>
- <span>to send</span>
+ <z-shortcut></z-shortcut> to send
+ {{#*inline "z-shortcut"}}<kbd>Ctrl</kbd>+<kbd>Enter</kbd>{{/inline}}
{{/tr}}
</span>
<span class="enter_sends_minor">
{{#tr}}
- <z-button><kbd>Enter</kbd></z-button>
- <span>to add a new line</span>
+ <z-shortcut></z-shortcut> to add a new line
+ {{#*inline "z-shortcut"}}<kbd>Enter</kbd>{{/inline}}
{{/tr}}
</span>
</div>