diff --git a/client/css/style.css b/client/css/style.css index d4dd6b10..c88f9f20 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -1469,6 +1469,15 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */ line-height: 1.8; } +.is-apple #help .key-all, +#help .key-apple { + display: none; +} + +.is-apple #help .key-apple { + display: inline-block; +} + #form { background: #eee; border-top: 1px solid #ddd; diff --git a/client/index.html b/client/index.html index 61abcde2..5b170e63 100644 --- a/client/index.html +++ b/client/index.html @@ -392,11 +392,9 @@
Switch to the previous/next window in the channel list
@@ -405,7 +403,7 @@@@ -422,7 +420,7 @@
Mark all text typed after this shortcut as bold.
@@ -431,7 +429,7 @@Mark all text typed after this shortcut as underlined.
@@ -440,7 +438,7 @@Mark all text typed after this shortcut as italics.
@@ -449,74 +447,7 @@- Mark all text typed after this shortcut to be reset to its - original formatting. -
-Switch to the previous/next window in the channel list
-
- Mark any text typed after this shortcut to be colored. After
- hitting this shortcut, enter an integer in the
- 0—15
range to select the desired color.
-
- A color reference can be found - here. -
-Mark all text typed after this shortcut as bold.
-Mark all text typed after this shortcut as underlined.
-Mark all text typed after this shortcut as italics.
-diff --git a/client/js/lounge.js b/client/js/lounge.js index ef4e20a1..2bc96530 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -168,6 +168,10 @@ $(function() { }); } + if (navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)) { + $(document.body).addClass("is-apple"); + } + $("#form").on("submit", function(e) { e.preventDefault(); utils.forceFocus();