unbindKey static method
Unbinds the handler
from the key
.
Implementation
static Future<void> unbindKey(HotKey key, bool Function() handler) async {
if (PlatformUtils.isIOS || PlatformUtils.isAndroid) {
// iOS and Android devices don't support hot keys.
return;
}
try {
await hotKeyManager.unregister(key);
} catch (e) {
Log.warning('Unable to unbind hot key: $e', 'WebUtils');
}
}