mirror of
https://github.com/aristocratos/btop.git
synced 2026-05-19 14:10:14 -04:00
feat: map = to + to avoid having to press shift when increasing refresh rate (#1665)
This commit is contained in:
@@ -542,7 +542,7 @@ namespace Input {
|
||||
bool redraw = true;
|
||||
static uint64_t last_press = 0;
|
||||
|
||||
if (key == "+" and Config::getI("update_ms") <= 86399900) {
|
||||
if ((key == "+" or key == "=") and Config::getI("update_ms") <= 86399900) {
|
||||
int add = (Config::getI("update_ms") <= 86399000 and last_press >= time_ms() - 200
|
||||
and rng::all_of(Input::history, [](const auto& str){ return str == "+"; })
|
||||
? 1000 : 100);
|
||||
|
||||
Reference in New Issue
Block a user