Back

Making your Tauri Apps more Desktop like

24. July, 2023

Working with Tauri or any other Framework that uses a Webview has one big disadvantage: Your Application still acts like a Webapp even after compiling it into a Binary.


Therefore I have compiled a list of possible optimizations to make your Tauri App seem more "Desktop" like. (I will be updating this post when I think of more things to add)


There are various Key Events that we don't want in our Desktop App. The following script will remove:

ts
window.addEventListener('keydown', function (e) {
    if ((e.ctrlKey && e.code == "KeyF") || e.code =="F5") { 
          e.preventDefault();
    }
})

This point can be argued about. I personally don't like chromium's autocomplete so I always disable it.

To turn off autocomplete, just add this as an attribute to your input fields:

<input autocomplete="none">

©2023 - 2025 Mathias Mantai