Move current search in channel function to Shift+CTRL+S
Add search in team Closes #270
This commit is contained in:
@@ -142,6 +142,16 @@ function getCurrentChannelString() {
|
||||
}
|
||||
|
||||
ipc.on('activate-search-box', (event) => {
|
||||
const search_boxes = document.getElementsByClassName('search-bar'); // should use id
|
||||
if (search_boxes.length === 0) {
|
||||
return;
|
||||
}
|
||||
const search_box = search_boxes[0];
|
||||
search_box.focus();
|
||||
search_box.value = ``; //Clear the input box
|
||||
});
|
||||
|
||||
ipc.on('activate-search-box-in-channel', (event) => {
|
||||
const search_boxes = document.getElementsByClassName('search-bar'); // should use id
|
||||
if (search_boxes.length === 0) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user