[Feature] FS#13884 #2 allow merging imported native keymaps

allows you to import a file and merge native keymaps

pops a yes no prompt to erase existing

duplicates will be overwritten

Change-Id: I167c6fac65775754b2a9874185d14f65638db9d7
This commit is contained in:
William Wilgus 2026-06-05 12:06:09 -04:00
parent 7517674513
commit 2b96380641

View file

@ -1134,7 +1134,10 @@ static int keyremap_load_file(const char *filename)
if (count > 0)
{
keyremap_reset_buffer();
if (ctx_data.ctx_count == 0 || rb->yesno_pop("Delete Current Entries?") == true)
{
keyremap_reset_buffer();
}
while(--count > 0)
{
rb->lseek(fd, ctxpos, SEEK_SET); /* next context remap entry */