FEATURE: on iPad bluetooth keyboard use ALT-ENTER for post submit
Command and Control can not be properly detected via JavaScript so lean on Alt that can be detected.
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
setLocalTheme
|
||||
} from "discourse/lib/theme-selector";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { safariHacksDisabled } from "discourse/lib/utilities";
|
||||
import { safariHacksDisabled, isiPad } from "discourse/lib/utilities";
|
||||
|
||||
const USER_HOMES = {
|
||||
1: "latest",
|
||||
@@ -49,10 +49,7 @@ export default Ember.Controller.extend(PreferencesTabController, {
|
||||
|
||||
@computed()
|
||||
isiPad() {
|
||||
return (
|
||||
navigator.userAgent.match(/iPad/g) &&
|
||||
!navigator.userAgent.match(/Trident/g)
|
||||
);
|
||||
return isiPad();
|
||||
},
|
||||
|
||||
@computed()
|
||||
|
||||
Reference in New Issue
Block a user