I’m pretty sure macOS does warn you that turning Bluetooth off will disconnect your keyboard/mouse/trackpad, if thats the only input device you’ve got connected.
Not sure when it was introduced but it’s definitely there on the latest version because I bumped into it the other day.
Not sure when it was introduced but it’s definitely there on the latest version because I bumped into it the other day.