mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: topic search shortcut for macs
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user