mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 22:03:24 +02:00
press / to highlight search input box
This commit is contained in:
@@ -12,6 +12,12 @@ define('admin', ['mousetrap'], function(Mousetrap) {
|
||||
console.log('[admin] Restarting NodeBB...');
|
||||
socket.emit('admin.restart');
|
||||
});
|
||||
|
||||
Mousetrap.bind('/', function(e) {
|
||||
$('#acp-search input').focus();
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user