Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0a72850 authored by Michael Wright's avatar Michael Wright
Browse files

Disable kernel keyrepeat

Bug: 6332980
Change-Id: Ife69167285aad24ed3e4fa5b65abf59d8dfa4f0a
parent 47e8074d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1183,6 +1183,12 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
                break;
            }
        }

        // Disable kernel key repeat since we handle it ourselves
        unsigned int repeatRate[] = {0,0};
        if (ioctl(fd, EVIOCSREP, repeatRate)) {
            ALOGW("Unable to disable kernel key repeat for %s: %s", devicePath, strerror(errno));
        }
    }

    // If the device isn't recognized as something we handle, don't monitor it.