fix: topic search shortcut for macs

This commit is contained in:
Julian Lam
2020-05-06 12:55:54 -04:00
parent 6567e47494
commit f2c725c658

View File

@@ -87,7 +87,7 @@ define('forum/topic', [
if (config.topicSearchEnabled) { if (config.topicSearchEnabled) {
require(['mousetrap'], function (mousetrap) { require(['mousetrap'], function (mousetrap) {
mousetrap.bind('ctrl+f', function (e) { mousetrap.bind(['command+f', 'ctrl+f'], function (e) {
var match = ajaxify.currentPage.match(/^topic\/([\d]+)/); var match = ajaxify.currentPage.match(/^topic\/([\d]+)/);
var tid; var tid;
if (match) { if (match) {