You may use a GNOME shell extension called "Block Caribou".
It claims to block caribou (the on screen keyboard) from popping up when you use a touchscreen in GNOME shell v3.26.
**Edit:** for later versions and if Block Caribou doesn't seem to help try the newer shell extension Block Caribou 36.