},
controlbarHandleMouseUp: function(e) {
- if ((e.type == "mouseup") && (e.button != 0))
- return;
+ if ((e.type == "mouseup") && (e.button != 0)) return;
// mouseup and mousedown on the same place toggles the controlbar
if (UI.controlbarGrabbed && !UI.controlbarDrag) {
},
controlbarHandleMouseDown: function(e) {
- if ((e.type == "mousedown") && (e.button != 0))
- return;
+ if ((e.type == "mousedown") && (e.button != 0)) return;
var ptr = Util.getPointerEvent(e);
// Update parameters that depend on the clip setting
updateViewClip: function() {
var display;
- if (!UI.rfb) {
- return;
- }
+ if (!UI.rfb) return;
var display = UI.rfb.get_display();
var cur_clip = display.get_viewport();
* ------v------*/
showVirtualKeyboard: function() {
- if (!UI.isTouchDevice)
- return;
+ if (!UI.isTouchDevice) return;
var input = document.getElementById('noVNC_keyboardinput');
- if (document.activeElement == input)
- return;
+ if (document.activeElement == input) return;
UI.keyboardVisible = true;
document.getElementById('noVNC_keyboard_button')
},
hideVirtualKeyboard: function() {
- if (!UI.isTouchDevice)
- return;
+ if (!UI.isTouchDevice) return;
var input = document.getElementById('noVNC_keyboardinput');
- if (document.activeElement != input)
- return;
+ if (document.activeElement != input) return;
input.blur();
},